Commit 3e3f878f authored by Tina Ruchandani's avatar Tina Ruchandani Committed by Greg Kroah-Hartman

Staging: rtl8723au: core: Fix switch-case indent

This patch fixes the following checkpatch errors
in rtw_cmd.c :
ERROR: switch and case should be at the same indent
Signed-off-by: default avatarTina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5db8bee6
......@@ -1021,44 +1021,44 @@ static void lps_ctrl_wk_hdl(struct rtw_adapter *padapter, u8 lps_ctrl_type)
return;
switch (lps_ctrl_type) {
case LPS_CTRL_SCAN:
rtl8723a_BT_wifiscan_notify(padapter, true);
if (!rtl8723a_BT_using_antenna_1(padapter)) {
if (check_fwstate(pmlmepriv, _FW_LINKED))
LPS_Leave23a(padapter);
case LPS_CTRL_SCAN:
rtl8723a_BT_wifiscan_notify(padapter, true);
if (!rtl8723a_BT_using_antenna_1(padapter)) {
if (check_fwstate(pmlmepriv, _FW_LINKED))
LPS_Leave23a(padapter);
}
break;
case LPS_CTRL_JOINBSS:
break;
case LPS_CTRL_JOINBSS:
LPS_Leave23a(padapter);
break;
case LPS_CTRL_CONNECT:
mstatus = 1;/* connect */
/* Reset LPS Setting */
padapter->pwrctrlpriv.LpsIdleCount = 0;
rtl8723a_set_FwJoinBssReport_cmd(padapter, 1);
rtl8723a_BT_mediastatus_notify(padapter, mstatus);
break;
case LPS_CTRL_DISCONNECT:
mstatus = 0;/* disconnect */
rtl8723a_BT_mediastatus_notify(padapter, mstatus);
if (!rtl8723a_BT_using_antenna_1(padapter))
LPS_Leave23a(padapter);
break;
case LPS_CTRL_CONNECT:
mstatus = 1;/* connect */
/* Reset LPS Setting */
padapter->pwrctrlpriv.LpsIdleCount = 0;
rtl8723a_set_FwJoinBssReport_cmd(padapter, 1);
rtl8723a_BT_mediastatus_notify(padapter, mstatus);
break;
case LPS_CTRL_DISCONNECT:
mstatus = 0;/* disconnect */
rtl8723a_BT_mediastatus_notify(padapter, mstatus);
if (!rtl8723a_BT_using_antenna_1(padapter))
LPS_Leave23a(padapter);
rtl8723a_set_FwJoinBssReport_cmd(padapter, 0);
break;
case LPS_CTRL_SPECIAL_PACKET:
pwrpriv->DelayLPSLastTimeStamp = jiffies;
rtl8723a_BT_specialpacket_notify(padapter);
if (!rtl8723a_BT_using_antenna_1(padapter))
LPS_Leave23a(padapter);
break;
case LPS_CTRL_LEAVE:
rtl8723a_BT_lps_leave(padapter);
if (!rtl8723a_BT_using_antenna_1(padapter))
LPS_Leave23a(padapter);
break;
rtl8723a_set_FwJoinBssReport_cmd(padapter, 0);
break;
case LPS_CTRL_SPECIAL_PACKET:
pwrpriv->DelayLPSLastTimeStamp = jiffies;
rtl8723a_BT_specialpacket_notify(padapter);
if (!rtl8723a_BT_using_antenna_1(padapter))
LPS_Leave23a(padapter);
break;
case LPS_CTRL_LEAVE:
rtl8723a_BT_lps_leave(padapter);
if (!rtl8723a_BT_using_antenna_1(padapter))
LPS_Leave23a(padapter);
break;
default:
break;
default:
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment