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) ...@@ -1021,44 +1021,44 @@ static void lps_ctrl_wk_hdl(struct rtw_adapter *padapter, u8 lps_ctrl_type)
return; return;
switch (lps_ctrl_type) { switch (lps_ctrl_type) {
case LPS_CTRL_SCAN: case LPS_CTRL_SCAN:
rtl8723a_BT_wifiscan_notify(padapter, true); rtl8723a_BT_wifiscan_notify(padapter, true);
if (!rtl8723a_BT_using_antenna_1(padapter)) { if (!rtl8723a_BT_using_antenna_1(padapter)) {
if (check_fwstate(pmlmepriv, _FW_LINKED)) if (check_fwstate(pmlmepriv, _FW_LINKED))
LPS_Leave23a(padapter); LPS_Leave23a(padapter);
} }
break; break;
case LPS_CTRL_JOINBSS: 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); LPS_Leave23a(padapter);
break; rtl8723a_set_FwJoinBssReport_cmd(padapter, 0);
case LPS_CTRL_CONNECT: break;
mstatus = 1;/* connect */ case LPS_CTRL_SPECIAL_PACKET:
/* Reset LPS Setting */ pwrpriv->DelayLPSLastTimeStamp = jiffies;
padapter->pwrctrlpriv.LpsIdleCount = 0; rtl8723a_BT_specialpacket_notify(padapter);
rtl8723a_set_FwJoinBssReport_cmd(padapter, 1); if (!rtl8723a_BT_using_antenna_1(padapter))
rtl8723a_BT_mediastatus_notify(padapter, mstatus); LPS_Leave23a(padapter);
break; break;
case LPS_CTRL_DISCONNECT: case LPS_CTRL_LEAVE:
mstatus = 0;/* disconnect */ rtl8723a_BT_lps_leave(padapter);
rtl8723a_BT_mediastatus_notify(padapter, mstatus); if (!rtl8723a_BT_using_antenna_1(padapter))
if (!rtl8723a_BT_using_antenna_1(padapter)) LPS_Leave23a(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: default:
break; 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