Commit b54e8804 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Improve some bad switch() formatting

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f0758706
...@@ -1350,45 +1350,32 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx) ...@@ -1350,45 +1350,32 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
switch (ie_id) switch (ie_id)
{ {
case 0xFF: case 0xFF:
/* 8: TimeStamp, 2: Beacon Interval 2:Capability */
update_bcn_fixed_ie(padapter);/* 8: TimeStamp, 2: Beacon Interval 2:Capability */ update_bcn_fixed_ie(padapter);
break; break;
case _TIM_IE_: case _TIM_IE_:
update_BCNTIM(padapter); update_BCNTIM(padapter);
break; break;
case _ERPINFO_IE_: case _ERPINFO_IE_:
update_bcn_erpinfo_ie(padapter); update_bcn_erpinfo_ie(padapter);
break; break;
case _HT_CAPABILITY_IE_: case _HT_CAPABILITY_IE_:
update_bcn_htcap_ie(padapter); update_bcn_htcap_ie(padapter);
break; break;
case _RSN_IE_2_: case _RSN_IE_2_:
update_bcn_rsn_ie(padapter); update_bcn_rsn_ie(padapter);
break; break;
case _HT_ADD_INFO_IE_: case _HT_ADD_INFO_IE_:
update_bcn_htinfo_ie(padapter); update_bcn_htinfo_ie(padapter);
break; break;
case _VENDOR_SPECIFIC_IE_: case _VENDOR_SPECIFIC_IE_:
update_bcn_vendor_spec_ie(padapter, oui); update_bcn_vendor_spec_ie(padapter, oui);
break; break;
default: default:
......
...@@ -2333,7 +2333,8 @@ void rtw_update_ht_cap23a(struct rtw_adapter *padapter, u8 *pie, uint ie_len) ...@@ -2333,7 +2333,8 @@ void rtw_update_ht_cap23a(struct rtw_adapter *padapter, u8 *pie, uint ie_len)
break; break;
default: default:
pmlmeext->cur_ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE; pmlmeext->cur_ch_offset =
HAL_PRIME_CHNL_OFFSET_DONT_CARE;
break; break;
} }
} }
......
...@@ -3588,7 +3588,8 @@ void p2p_ps_wk_hdl23a(struct rtw_adapter *padapter, u8 p2p_ps_state) ...@@ -3588,7 +3588,8 @@ void p2p_ps_wk_hdl23a(struct rtw_adapter *padapter, u8 p2p_ps_state)
if (pwdinfo->ctwindow > 0) { if (pwdinfo->ctwindow > 0) {
if (pwrpriv->smart_ps != 0) { if (pwrpriv->smart_ps != 0) {
pwrpriv->smart_ps = 0; pwrpriv->smart_ps = 0;
DBG_8723A("%s(): Enter CTW, change SmartPS\n", __func__); DBG_8723A("%s(): Enter CTW, change "
"SmartPS\n", __func__);
rtl8723a_set_FwPwrMode_cmd(padapter, padapter->pwrctrlpriv.pwr_mode); rtl8723a_set_FwPwrMode_cmd(padapter, padapter->pwrctrlpriv.pwr_mode);
} }
} }
...@@ -3601,15 +3602,12 @@ void p2p_ps_wk_hdl23a(struct rtw_adapter *padapter, u8 p2p_ps_state) ...@@ -3601,15 +3602,12 @@ void p2p_ps_wk_hdl23a(struct rtw_adapter *padapter, u8 p2p_ps_state)
case P2P_PS_ALLSTASLEEP: case P2P_PS_ALLSTASLEEP:
if (pwdinfo->p2p_ps_mode > P2P_PS_NONE) { if (pwdinfo->p2p_ps_mode > P2P_PS_NONE) {
pwdinfo->p2p_ps_state = p2p_ps_state; pwdinfo->p2p_ps_state = p2p_ps_state;
rtl8723a_set_p2p_ps_offload_cmd(padapter, rtl8723a_set_p2p_ps_offload_cmd(padapter, p2p_ps_state);
p2p_ps_state);
} }
break; break;
default: default:
break; break;
} }
} }
u8 p2p_ps_wk_cmd23a(struct rtw_adapter*padapter, u8 p2p_ps_state, u8 enqueue) u8 p2p_ps_wk_cmd23a(struct rtw_adapter*padapter, u8 p2p_ps_state, u8 enqueue)
......
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