mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Change "switch(" to "switch ("
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
8e22f0d2e8
commit
c818db1282
35 changed files with 170 additions and 170 deletions
|
@ -1245,7 +1245,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
{
|
||||
pHT_info_ie=p;
|
||||
}
|
||||
switch(network_type)
|
||||
switch (network_type)
|
||||
{
|
||||
case WIRELESS_11B:
|
||||
pbss_network->NetworkTypeInUse = Ndis802_11DS;
|
||||
|
@ -1626,7 +1626,7 @@ void update_beacon(struct adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
|
|||
|
||||
spin_lock_bh(&pmlmepriv->bcn_update_lock);
|
||||
|
||||
switch(ie_id)
|
||||
switch (ie_id)
|
||||
{
|
||||
case 0xFF:
|
||||
|
||||
|
@ -2068,7 +2068,7 @@ u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16
|
|||
return beacon_updated;
|
||||
}
|
||||
|
||||
int rtw_ap_inform_ch_switch(struct adapter *padapter, u8 new_ch, u8 ch_offset)
|
||||
int rtw_ap_inform_ch_switch (struct adapter *padapter, u8 new_ch, u8 ch_offset)
|
||||
{
|
||||
unsigned long irqL;
|
||||
struct list_head *phead, *plist;
|
||||
|
@ -2095,12 +2095,12 @@ int rtw_ap_inform_ch_switch(struct adapter *padapter, u8 new_ch, u8 ch_offset)
|
|||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
plist = get_next(plist);
|
||||
|
||||
issue_action_spct_ch_switch(padapter, psta->hwaddr, new_ch, ch_offset);
|
||||
issue_action_spct_ch_switch (padapter, psta->hwaddr, new_ch, ch_offset);
|
||||
psta->expire_to = ((pstapriv->expire_to * 2) > 5) ? 5 : (pstapriv->expire_to * 2);
|
||||
}
|
||||
spin_unlock_bh(&pstapriv->asoc_list_lock);
|
||||
|
||||
issue_action_spct_ch_switch(padapter, bc_addr, new_ch, ch_offset);
|
||||
issue_action_spct_ch_switch (padapter, bc_addr, new_ch, ch_offset);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -661,7 +661,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
return -1;
|
||||
}
|
||||
|
||||
switch(method) {
|
||||
switch (method) {
|
||||
case NAT25_CHECK:
|
||||
return -1;
|
||||
|
||||
|
@ -734,7 +734,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
return -1;
|
||||
}
|
||||
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
return 0; /* skb_copy for all ARP frame */
|
||||
|
@ -868,7 +868,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
/* IPX */
|
||||
if (ipx != NULL)
|
||||
{
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
if (!memcmp(skb->data+ETH_ALEN, ipx->ipx_source.node, ETH_ALEN))
|
||||
|
@ -955,7 +955,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
return -1;
|
||||
}
|
||||
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
return 0;
|
||||
|
@ -1004,7 +1004,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
/* DDP */
|
||||
else if (ddp != NULL)
|
||||
{
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
return -1;
|
||||
|
@ -1056,7 +1056,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN);
|
||||
__be16 *pMagic;
|
||||
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
if (ph->sid == 0)
|
||||
|
@ -1221,7 +1221,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
/*---------------------------------------------------*/
|
||||
else if (protocol == 0x888e)
|
||||
{
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
return -1;
|
||||
|
@ -1243,7 +1243,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
else if ((protocol == 0xe2ae) ||
|
||||
(protocol == 0xe2af))
|
||||
{
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
return -1;
|
||||
|
@ -1273,7 +1273,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
return -1;
|
||||
}
|
||||
|
||||
switch(method)
|
||||
switch (method)
|
||||
{
|
||||
case NAT25_CHECK:
|
||||
if (skb->data[0] & 1)
|
||||
|
|
|
@ -1008,7 +1008,7 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network* pnetwork)
|
|||
/* for hidden ap to set fw_state here */
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) != true)
|
||||
{
|
||||
switch(ndis_network_mode)
|
||||
switch (ndis_network_mode)
|
||||
{
|
||||
case Ndis802_11IBSS:
|
||||
set_fwstate(pmlmepriv, WIFI_ADHOC_STATE);
|
||||
|
@ -1960,7 +1960,7 @@ static void lps_ctrl_wk_hdl(struct adapter *padapter, u8 lps_ctrl_type)
|
|||
return;
|
||||
}
|
||||
|
||||
switch(lps_ctrl_type)
|
||||
switch (lps_ctrl_type)
|
||||
{
|
||||
case LPS_CTRL_SCAN:
|
||||
/* DBG_871X("LPS_CTRL_SCAN\n"); */
|
||||
|
@ -2457,7 +2457,7 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf)
|
|||
|
||||
pdrvextra_cmd = (struct drvextra_cmd_parm*)pbuf;
|
||||
|
||||
switch(pdrvextra_cmd->ec_id)
|
||||
switch (pdrvextra_cmd->ec_id)
|
||||
{
|
||||
case DYNAMIC_CHK_WK_CID:
|
||||
dynamic_chk_wk_hdl(padapter, pdrvextra_cmd->pbuf, pdrvextra_cmd->type_size);
|
||||
|
|
|
@ -85,7 +85,7 @@ int proc_set_write_reg(struct file *file, const char __user *buffer,
|
|||
return count;
|
||||
}
|
||||
|
||||
switch(len)
|
||||
switch (len)
|
||||
{
|
||||
case 1:
|
||||
rtw_write8(padapter, addr, (u8)val);
|
||||
|
@ -125,7 +125,7 @@ int proc_get_read_reg(char *page, char **start,
|
|||
return len;
|
||||
}
|
||||
|
||||
switch(proc_get_read_len)
|
||||
switch (proc_get_read_len)
|
||||
{
|
||||
case 1:
|
||||
len += snprintf(page + len, count - len, "rtw_read8(0x%x)=0x%x\n", proc_get_read_addr, rtw_read8(padapter, proc_get_read_addr));
|
||||
|
|
|
@ -159,7 +159,7 @@ u8 *rtw_set_ie
|
|||
;
|
||||
}
|
||||
|
||||
inline u8 *rtw_set_ie_ch_switch(u8 *buf, u32 *buf_len, u8 ch_switch_mode,
|
||||
inline u8 *rtw_set_ie_ch_switch (u8 *buf, u32 *buf_len, u8 ch_switch_mode,
|
||||
u8 new_ch, u8 ch_switch_cnt)
|
||||
{
|
||||
u8 ie_data[3];
|
||||
|
@ -829,7 +829,7 @@ u8 *rtw_get_wps_ie_from_scan_queue(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps
|
|||
u8* wps = NULL;
|
||||
|
||||
DBG_871X( "[%s] frame_type = %d\n", __FUNCTION__, frame_type );
|
||||
switch( frame_type )
|
||||
switch ( frame_type )
|
||||
{
|
||||
case 1:
|
||||
case 3:
|
||||
|
@ -1436,7 +1436,7 @@ u8 *rtw_get_p2p_ie_from_scan_queue(u8 *in_ie, int in_len, u8 *p2p_ie, uint *p2p_
|
|||
u8* p2p = NULL;
|
||||
|
||||
DBG_871X( "[%s] frame_type = %d\n", __FUNCTION__, frame_type );
|
||||
switch( frame_type )
|
||||
switch ( frame_type )
|
||||
{
|
||||
case 1:
|
||||
case 3:
|
||||
|
@ -1759,7 +1759,7 @@ int rtw_get_wfd_ie_from_scan_queue(u8 *in_ie, int in_len, u8 *wfd_ie, uint *wfd_
|
|||
match=false;
|
||||
|
||||
DBG_871X( "[%s] frame_type = %d\n", __FUNCTION__, frame_type );
|
||||
switch( frame_type )
|
||||
switch ( frame_type )
|
||||
{
|
||||
case 1:
|
||||
case 3:
|
||||
|
@ -2055,7 +2055,7 @@ int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8* category, u8 *act
|
|||
|
||||
c = frame_body[0];
|
||||
|
||||
switch(c) {
|
||||
switch (c) {
|
||||
case RTW_WLAN_CATEGORY_P2P: /* vendor-specific */
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -530,7 +530,7 @@ u8 rtw_set_802_11_infrastructure_mode(struct adapter* padapter,
|
|||
|
||||
_clr_fwstate_(pmlmepriv, ~WIFI_NULL_STATE);
|
||||
|
||||
switch(networktype) {
|
||||
switch (networktype) {
|
||||
case Ndis802_11IBSS:
|
||||
set_fwstate(pmlmepriv, WIFI_ADHOC_STATE);
|
||||
break;
|
||||
|
@ -684,7 +684,7 @@ u8 rtw_set_802_11_add_wep(struct adapter* padapter, struct ndis_802_11_wep *wep)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
switch(wep->KeyLength) {
|
||||
switch (wep->KeyLength) {
|
||||
case 5:
|
||||
psecuritypriv->dot11PrivacyAlgrthm=_WEP40_;
|
||||
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("MgntActrtw_set_802_11_add_wep:wep->KeyLength=5\n"));
|
||||
|
@ -882,7 +882,7 @@ u8 rtw_set_802_11_add_key(struct adapter* padapter, struct ndis_802_11_key *key)
|
|||
{
|
||||
RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("keylen=%d( Adapter->securitypriv.dot11PrivacyAlgrthm=%x )padapter->securitypriv.dot118021XGrpPrivacy(%x)\n", key->KeyLength,padapter->securitypriv.dot11PrivacyAlgrthm,padapter->securitypriv.dot118021XGrpPrivacy));
|
||||
|
||||
switch(key->KeyLength)
|
||||
switch (key->KeyLength)
|
||||
{
|
||||
case 5:
|
||||
padapter->securitypriv.dot11PrivacyAlgrthm=_WEP40_;
|
||||
|
|
|
@ -136,7 +136,7 @@ static void SwLedBlink(PLED_871x pLed)
|
|||
|
||||
/* Determine if we shall change LED state again. */
|
||||
pLed->BlinkTimes--;
|
||||
switch(pLed->CurrLedState)
|
||||
switch (pLed->CurrLedState)
|
||||
{
|
||||
|
||||
case LED_BLINK_NORMAL:
|
||||
|
@ -204,7 +204,7 @@ static void SwLedBlink(PLED_871x pLed)
|
|||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
|
||||
/* Schedule a timer to toggle LED state. */
|
||||
switch( pLed->CurrLedState )
|
||||
switch ( pLed->CurrLedState )
|
||||
{
|
||||
case LED_BLINK_NORMAL:
|
||||
_set_timer(&(pLed->BlinkTimer), LED_BLINK_NORMAL_INTERVAL);
|
||||
|
@ -258,7 +258,7 @@ static void SwLedBlink1(PLED_871x pLed)
|
|||
return;
|
||||
}
|
||||
|
||||
switch(pLed->CurrLedState)
|
||||
switch (pLed->CurrLedState)
|
||||
{
|
||||
case LED_BLINK_SLOWLY:
|
||||
if ( pLed->bLedOn )
|
||||
|
@ -420,7 +420,7 @@ static void SwLedBlink2(PLED_871x pLed)
|
|||
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn off\n", pLed->BlinkTimes));
|
||||
}
|
||||
|
||||
switch(pLed->CurrLedState)
|
||||
switch (pLed->CurrLedState)
|
||||
{
|
||||
case LED_BLINK_SCAN:
|
||||
pLed->BlinkTimes--;
|
||||
|
@ -540,7 +540,7 @@ static void SwLedBlink3(PLED_871x pLed)
|
|||
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn off\n", pLed->BlinkTimes));
|
||||
}
|
||||
|
||||
switch(pLed->CurrLedState)
|
||||
switch (pLed->CurrLedState)
|
||||
{
|
||||
case LED_BLINK_SCAN:
|
||||
pLed->BlinkTimes--;
|
||||
|
@ -714,7 +714,7 @@ static void SwLedBlink4(PLED_871x pLed)
|
|||
SwLedOff(padapter, pLed1);
|
||||
}
|
||||
|
||||
switch(pLed->CurrLedState)
|
||||
switch (pLed->CurrLedState)
|
||||
{
|
||||
case LED_BLINK_SLOWLY:
|
||||
if ( pLed->bLedOn )
|
||||
|
@ -899,7 +899,7 @@ static void SwLedBlink5(PLED_871x pLed)
|
|||
RT_TRACE(_module_rtl8712_led_c_,_drv_info_,("Blinktimes (%d): turn off\n", pLed->BlinkTimes));
|
||||
}
|
||||
|
||||
switch(pLed->CurrLedState)
|
||||
switch (pLed->CurrLedState)
|
||||
{
|
||||
case LED_BLINK_SCAN:
|
||||
pLed->BlinkTimes--;
|
||||
|
@ -1025,7 +1025,7 @@ SwLedControlMode0(
|
|||
PLED_871x pLed = &(ledpriv->SwLed1);
|
||||
|
||||
/* Decide led state */
|
||||
switch(LedAction)
|
||||
switch (LedAction)
|
||||
{
|
||||
case LED_CTL_TX:
|
||||
case LED_CTL_RX:
|
||||
|
@ -1140,7 +1140,7 @@ SwLedControlMode1(
|
|||
PLED_871x pLed = &(ledpriv->SwLed0);
|
||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
|
||||
switch(LedAction)
|
||||
switch (LedAction)
|
||||
{
|
||||
case LED_CTL_POWER_ON:
|
||||
case LED_CTL_START_TO_LINK:
|
||||
|
@ -1407,7 +1407,7 @@ SwLedControlMode2(
|
|||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
PLED_871x pLed = &(ledpriv->SwLed0);
|
||||
|
||||
switch(LedAction)
|
||||
switch (LedAction)
|
||||
{
|
||||
case LED_CTL_SITE_SURVEY:
|
||||
if (pmlmepriv->LinkDetectInfo.bBusyTraffic)
|
||||
|
@ -1572,7 +1572,7 @@ SwLedControlMode2(
|
|||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
PLED_871x pLed = &(ledpriv->SwLed0);
|
||||
|
||||
switch(LedAction)
|
||||
switch (LedAction)
|
||||
{
|
||||
case LED_CTL_SITE_SURVEY:
|
||||
if (pmlmepriv->LinkDetectInfo.bBusyTraffic)
|
||||
|
@ -1752,7 +1752,7 @@ SwLedControlMode4(
|
|||
PLED_871x pLed = &(ledpriv->SwLed0);
|
||||
PLED_871x pLed1 = &(ledpriv->SwLed1);
|
||||
|
||||
switch(LedAction)
|
||||
switch (LedAction)
|
||||
{
|
||||
case LED_CTL_START_TO_LINK:
|
||||
if (pLed1->bLedWPSBlinkInProgress)
|
||||
|
@ -2083,7 +2083,7 @@ SwLedControlMode5(
|
|||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
PLED_871x pLed = &(ledpriv->SwLed0);
|
||||
|
||||
switch(LedAction)
|
||||
switch (LedAction)
|
||||
{
|
||||
case LED_CTL_POWER_ON:
|
||||
case LED_CTL_NO_LINK:
|
||||
|
@ -2166,7 +2166,7 @@ SwLedControlMode6(
|
|||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
PLED_871x pLed0 = &(ledpriv->SwLed0);
|
||||
|
||||
switch(LedAction)
|
||||
switch (LedAction)
|
||||
{
|
||||
case LED_CTL_POWER_ON:
|
||||
case LED_CTL_LINK:
|
||||
|
@ -2206,7 +2206,7 @@ void BlinkHandler(PLED_871x pLed)
|
|||
return;
|
||||
}
|
||||
|
||||
switch(ledpriv->LedStrategy)
|
||||
switch (ledpriv->LedStrategy)
|
||||
{
|
||||
case SW_LED_MODE0:
|
||||
SwLedBlink(pLed);
|
||||
|
@ -2269,7 +2269,7 @@ LedControl871x(
|
|||
return;
|
||||
}
|
||||
|
||||
switch(ledpriv->LedStrategy)
|
||||
switch (ledpriv->LedStrategy)
|
||||
{
|
||||
case SW_LED_MODE0:
|
||||
/* SwLedControlMode0(padapter, LedAction); */
|
||||
|
|
|
@ -1525,7 +1525,7 @@ static void rtw_joinbss_update_network(struct adapter *padapter, struct wlan_net
|
|||
rtw_set_signal_stat_timer(&padapter->recvpriv);
|
||||
|
||||
/* update fw_state will clr _FW_UNDER_LINKING here indirectly */
|
||||
switch(pnetwork->network.InfrastructureMode)
|
||||
switch (pnetwork->network.InfrastructureMode)
|
||||
{
|
||||
case Ndis802_11Infrastructure:
|
||||
|
||||
|
@ -2443,7 +2443,7 @@ sint rtw_set_key(struct adapter * adapter,struct security_priv *psecuritypriv,si
|
|||
DBG_871X("==> rtw_set_key algorithm(%x),keyid(%x),key_mask(%x)\n",psetkeyparm->algorithm,psetkeyparm->keyid, psecuritypriv->key_mask);
|
||||
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=%d psetkeyparm->keyid=(u8)keyid=%d\n",psetkeyparm->algorithm, keyid));
|
||||
|
||||
switch(psetkeyparm->algorithm){
|
||||
switch (psetkeyparm->algorithm){
|
||||
|
||||
case _WEP40_:
|
||||
keylen=5;
|
||||
|
@ -2718,7 +2718,7 @@ void rtw_update_registrypriv_dev_network(struct adapter* adapter)
|
|||
|
||||
pdev_network->Rssi = 0;
|
||||
|
||||
switch(pregistrypriv->wireless_mode) {
|
||||
switch (pregistrypriv->wireless_mode) {
|
||||
case WIRELESS_11B:
|
||||
pdev_network->NetworkTypeInUse = (Ndis802_11DS);
|
||||
break;
|
||||
|
|
|
@ -2163,7 +2163,7 @@ unsigned int OnAtim(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
static unsigned int on_action_spct_ch_switch(struct adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
|
||||
static unsigned int on_action_spct_ch_switch (struct adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
struct mlme_ext_priv *mlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -2252,7 +2252,7 @@ unsigned int on_action_spct(struct adapter *padapter, union recv_frame *precv_fr
|
|||
break;
|
||||
case RTW_WLAN_ACTION_SPCT_CHL_SWITCH:
|
||||
#ifdef CONFIG_SPCT_CH_SWITCH
|
||||
ret = on_action_spct_ch_switch(padapter, psta, &frame_body[2],
|
||||
ret = on_action_spct_ch_switch (padapter, psta, &frame_body[2],
|
||||
frame_len-(frame_body-pframe)-2);
|
||||
#endif
|
||||
break;
|
||||
|
@ -4869,7 +4869,7 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
|
||||
len -= sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
|
||||
switch( frame_body[ 6 ] )/* OUI Subtype */
|
||||
switch ( frame_body[ 6 ] )/* OUI Subtype */
|
||||
{
|
||||
case P2P_GO_NEGO_REQ:
|
||||
{
|
||||
|
@ -5392,7 +5392,7 @@ unsigned int OnAction_p2p(struct adapter *padapter, union recv_frame *precv_fram
|
|||
OUI_Subtype = frame_body[5];
|
||||
dialogToken = frame_body[6];
|
||||
|
||||
switch(OUI_Subtype)
|
||||
switch (OUI_Subtype)
|
||||
{
|
||||
case P2P_NOTICE_OF_ABSENCE:
|
||||
|
||||
|
@ -5628,7 +5628,7 @@ static int update_hidden_ssid(u8 *ies, u32 ies_len, u8 hidden_ssid_mode)
|
|||
|
||||
if (ssid_ie && ssid_len_ori>0)
|
||||
{
|
||||
switch(hidden_ssid_mode)
|
||||
switch (hidden_ssid_mode)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
|
@ -6806,7 +6806,7 @@ void issue_assocreq(struct adapter *padapter)
|
|||
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
||||
/* switch (pregpriv->rf_config) */
|
||||
switch(rf_type) {
|
||||
switch (rf_type) {
|
||||
case RF_1T1R:
|
||||
if (pregpriv->rx_stbc)
|
||||
pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info |= cpu_to_le16(0x0100);/* RX STBC One spatial stream */
|
||||
|
@ -7445,7 +7445,7 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
void issue_action_spct_ch_switch(struct adapter *padapter, u8 *ra, u8 new_ch, u8 ch_offset)
|
||||
void issue_action_spct_ch_switch (struct adapter *padapter, u8 *ra, u8 new_ch, u8 ch_offset)
|
||||
{
|
||||
unsigned long irqL;
|
||||
struct list_head *plist, *phead;
|
||||
|
@ -7499,7 +7499,7 @@ void issue_action_spct_ch_switch(struct adapter *padapter, u8 *ra, u8 new_ch, u8
|
|||
pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
|
||||
}
|
||||
|
||||
pframe = rtw_set_ie_ch_switch(pframe, &(pattrib->pktlen), 0, new_ch, 0);
|
||||
pframe = rtw_set_ie_ch_switch (pframe, &(pattrib->pktlen), 0, new_ch, 0);
|
||||
pframe = rtw_set_ie_secondary_ch_offset(pframe, &(pattrib->pktlen),
|
||||
hal_ch_offset_to_secondary_ch_offset(ch_offset));
|
||||
|
||||
|
|
|
@ -2475,7 +2475,7 @@ u8 process_p2p_provdisc_req(struct wifidirect_info *pwdinfo, u8 *pframe, uint l
|
|||
if ( rtw_get_wps_attr_content( wpsie, wps_ielen, WPS_ATTR_CONF_METHOD , ( u8 *)&be_tmp, &attr_contentlen) )
|
||||
{
|
||||
uconfig_method = be16_to_cpu(be_tmp);
|
||||
switch( uconfig_method )
|
||||
switch ( uconfig_method )
|
||||
{
|
||||
case WPS_CM_DISPLYA:
|
||||
{
|
||||
|
@ -3360,7 +3360,7 @@ void rtw_append_wfd_ie(struct adapter *padapter, u8 *buf, u32* len)
|
|||
{
|
||||
OUI_Subtype = frame_body[6];
|
||||
dialogToken = frame_body[7];
|
||||
switch( OUI_Subtype )/* OUI Subtype */
|
||||
switch ( OUI_Subtype )/* OUI Subtype */
|
||||
{
|
||||
case P2P_GO_NEGO_REQ:
|
||||
{
|
||||
|
@ -3427,7 +3427,7 @@ void rtw_append_wfd_ie(struct adapter *padapter, u8 *buf, u32* len)
|
|||
cpu_to_be32( *( ( u32* ) ( frame_body + 1 ) ) ), OUI_Subtype, dialogToken);
|
||||
#endif
|
||||
|
||||
switch(OUI_Subtype)
|
||||
switch (OUI_Subtype)
|
||||
{
|
||||
case P2P_NOTICE_OF_ABSENCE:
|
||||
|
||||
|
@ -3557,7 +3557,7 @@ int rtw_p2p_check_frames(struct adapter *padapter, const u8 *buf, u32 len, u8 tx
|
|||
len-sizeof(struct rtw_ieee80211_hdr_3addr)-_PUBLIC_ACTION_IE_OFFSET_,
|
||||
NULL, &p2p_ielen);
|
||||
|
||||
switch( OUI_Subtype )/* OUI Subtype */
|
||||
switch ( OUI_Subtype )/* OUI Subtype */
|
||||
{
|
||||
u8 *cont;
|
||||
uint cont_len;
|
||||
|
@ -3781,7 +3781,7 @@ int rtw_p2p_check_frames(struct adapter *padapter, const u8 *buf, u32 len, u8 tx
|
|||
|
||||
is_p2p_frame = OUI_Subtype;
|
||||
|
||||
switch(OUI_Subtype)
|
||||
switch (OUI_Subtype)
|
||||
{
|
||||
case P2P_NOTICE_OF_ABSENCE:
|
||||
DBG_871X("RTW_%s:P2P_NOTICE_OF_ABSENCE, dialogToken=%d\n", (tx==true)?"TX":"RX", dialogToken);
|
||||
|
@ -3823,7 +3823,7 @@ void p2p_protocol_wk_hdl(struct adapter *padapter, int intCmdType)
|
|||
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
|
||||
|
||||
|
||||
switch(intCmdType)
|
||||
switch (intCmdType)
|
||||
{
|
||||
case P2P_FIND_PHASE_WK:
|
||||
{
|
||||
|
@ -3966,7 +3966,7 @@ void p2p_ps_wk_hdl(struct adapter *padapter, u8 p2p_ps_state)
|
|||
|
||||
|
||||
/* Pre action for p2p state */
|
||||
switch(p2p_ps_state)
|
||||
switch (p2p_ps_state)
|
||||
{
|
||||
case P2P_PS_DISABLE:
|
||||
pwdinfo->p2p_ps_state = p2p_ps_state;
|
||||
|
|
|
@ -533,7 +533,7 @@ static union recv_frame *decryptor(struct adapter *padapter,union recv_frame *pr
|
|||
{
|
||||
DBG_871X("prxattrib->key_index(%d) > WEP_KEYS\n", prxattrib->key_index);
|
||||
|
||||
switch(prxattrib->encrypt){
|
||||
switch (prxattrib->encrypt){
|
||||
case _WEP40_:
|
||||
case _WEP104_:
|
||||
prxattrib->key_index = psecuritypriv->dot11PrivacyKeyIndex;
|
||||
|
@ -556,7 +556,7 @@ static union recv_frame *decryptor(struct adapter *padapter,union recv_frame *pr
|
|||
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
|
||||
#endif
|
||||
|
||||
switch(prxattrib->encrypt){
|
||||
switch (prxattrib->encrypt){
|
||||
case _WEP40_:
|
||||
case _WEP104_:
|
||||
rtw_wep_decrypt(padapter, (u8 *)precv_frame);
|
||||
|
@ -794,7 +794,7 @@ void process_wmmps_data(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
{
|
||||
u8 wmmps_ac=0;
|
||||
|
||||
switch(pattrib->priority)
|
||||
switch (pattrib->priority)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
|
@ -1254,7 +1254,7 @@ sint validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
/* for rx pkt statistics */
|
||||
psta->sta_stats.rx_ctrl_pkts++;
|
||||
|
||||
switch(pattrib->priority)
|
||||
switch (pattrib->priority)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
|
@ -1424,7 +1424,7 @@ sint validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
|
||||
memcpy(pattrib->bssid, pbssid, ETH_ALEN);
|
||||
|
||||
switch(pattrib->to_fr_ds)
|
||||
switch (pattrib->to_fr_ds)
|
||||
{
|
||||
case 0:
|
||||
memcpy(pattrib->ra, pda, ETH_ALEN);
|
||||
|
@ -1493,7 +1493,7 @@ sint validate_recv_data_frame(struct adapter *adapter, union recv_frame *precv_f
|
|||
|
||||
memcpy(pattrib->bssid, pbssid, ETH_ALEN);
|
||||
|
||||
switch(pattrib->to_fr_ds)
|
||||
switch (pattrib->to_fr_ds)
|
||||
{
|
||||
case 0:
|
||||
memcpy(pattrib->ra, pda, ETH_ALEN);
|
||||
|
|
|
@ -99,7 +99,7 @@ unsigned char networktype_to_raid(unsigned char network_type)
|
|||
{
|
||||
unsigned char raid;
|
||||
|
||||
switch(network_type)
|
||||
switch (network_type)
|
||||
{
|
||||
case WIRELESS_11B:
|
||||
raid = RATR_INX_WIRELESS_B;
|
||||
|
@ -313,7 +313,7 @@ void UpdateBrateTbl(
|
|||
for(i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++)
|
||||
{
|
||||
rate = mBratesOS[i] & 0x7f;
|
||||
switch(rate)
|
||||
switch (rate)
|
||||
{
|
||||
case IEEE80211_CCK_RATE_1MB:
|
||||
case IEEE80211_CCK_RATE_2MB:
|
||||
|
@ -337,7 +337,7 @@ void UpdateBrateTblForSoftAP(u8 *bssrateset, u32 bssratelen)
|
|||
for(i=0;i<bssratelen;i++)
|
||||
{
|
||||
rate = bssrateset[i] & 0x7f;
|
||||
switch(rate)
|
||||
switch (rate)
|
||||
{
|
||||
case IEEE80211_CCK_RATE_1MB:
|
||||
case IEEE80211_CCK_RATE_2MB:
|
||||
|
|
|
@ -752,7 +752,7 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p
|
|||
{
|
||||
GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast);
|
||||
|
||||
switch(psecuritypriv->dot11AuthAlgrthm)
|
||||
switch (psecuritypriv->dot11AuthAlgrthm)
|
||||
{
|
||||
case dot11AuthAlgrthm_Open:
|
||||
case dot11AuthAlgrthm_Shared:
|
||||
|
@ -979,7 +979,7 @@ static s32 xmitframe_swencrypt(struct adapter *padapter, struct xmit_frame *pxmi
|
|||
{
|
||||
/* DBG_871X("start xmitframe_swencrypt\n"); */
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_alert_,("### xmitframe_swencrypt\n"));
|
||||
switch(pattrib->encrypt){
|
||||
switch (pattrib->encrypt){
|
||||
case _WEP40_:
|
||||
case _WEP104_:
|
||||
rtw_wep_encrypt(padapter, (u8 *)pxmitframe);
|
||||
|
@ -1206,7 +1206,7 @@ s32 rtw_txframes_sta_ac_pending(struct adapter *padapter, struct pkt_attrib *pat
|
|||
return 0;
|
||||
}
|
||||
|
||||
switch(priority)
|
||||
switch (priority)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
|
@ -1355,7 +1355,7 @@ s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct
|
|||
|
||||
if (psta != NULL)
|
||||
{
|
||||
switch(pattrib->encrypt)
|
||||
switch (pattrib->encrypt)
|
||||
{
|
||||
case _WEP40_:
|
||||
case _WEP104_:
|
||||
|
@ -1628,7 +1628,7 @@ s32 rtw_mgmt_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, s
|
|||
/* it's MIC of AES */
|
||||
pattrib->icv_len = 8;
|
||||
|
||||
switch(pattrib->encrypt)
|
||||
switch (pattrib->encrypt)
|
||||
{
|
||||
case _AES_:
|
||||
/* set AES IV header */
|
||||
|
@ -1737,7 +1737,7 @@ void rtw_update_protection(struct adapter *padapter, u8 *ie, uint ie_len)
|
|||
|
||||
;
|
||||
|
||||
switch(pxmitpriv->vcs_setting)
|
||||
switch (pxmitpriv->vcs_setting)
|
||||
{
|
||||
case DISABLE_VCS:
|
||||
pxmitpriv->vcs = NONE_VCS;
|
||||
|
@ -2608,7 +2608,7 @@ u32 rtw_get_ff_hwaddr(struct xmit_frame *pxmitframe)
|
|||
u32 addr;
|
||||
struct pkt_attrib *pattrib = &pxmitframe->attrib;
|
||||
|
||||
switch(pattrib->qsel)
|
||||
switch (pattrib->qsel)
|
||||
{
|
||||
case 0:
|
||||
case 3:
|
||||
|
@ -2838,7 +2838,7 @@ sint xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct xmit_fr
|
|||
|
||||
psta->sleepq_len++;
|
||||
|
||||
switch(pattrib->priority)
|
||||
switch (pattrib->priority)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
|
@ -3001,7 +3001,7 @@ void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta)
|
|||
|
||||
rtw_list_delete(&pxmitframe->list);
|
||||
|
||||
switch(pxmitframe->attrib.priority)
|
||||
switch (pxmitframe->attrib.priority)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
|
@ -3165,7 +3165,7 @@ void xmit_delivery_enabled_frames(struct adapter *padapter, struct sta_info *pst
|
|||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
|
||||
switch(pxmitframe->attrib.priority) {
|
||||
switch (pxmitframe->attrib.priority) {
|
||||
case 1:
|
||||
case 2:
|
||||
wmmps_ac = psta->uapsd_bk&BIT(1);
|
||||
|
@ -3252,7 +3252,7 @@ int rtw_sctx_wait(struct submit_ctx *sctx)
|
|||
|
||||
static bool rtw_sctx_chk_waring_status(int status)
|
||||
{
|
||||
switch(status) {
|
||||
switch (status) {
|
||||
case RTW_SCTX_DONE_UNKNOWN:
|
||||
case RTW_SCTX_DONE_BUF_ALLOC:
|
||||
case RTW_SCTX_DONE_BUF_FREE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue