mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 12:33:40 +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:
|
||||
|
|
|
@ -381,7 +381,7 @@ odm_ARFBRefresh_8188E(
|
|||
u32 MaskFromReg;
|
||||
s8 i;
|
||||
|
||||
switch(pRaInfo->RateID){
|
||||
switch (pRaInfo->RateID){
|
||||
case RATR_INX_WIRELESS_NGB:
|
||||
pRaInfo->RAUseRate=(pRaInfo->RateMask)&0x0f8ff015;
|
||||
break;
|
||||
|
|
|
@ -107,7 +107,7 @@ u8 MRateToHwRate(u8 rate)
|
|||
{
|
||||
u8 ret = DESC_RATE1M;
|
||||
|
||||
switch(rate)
|
||||
switch (rate)
|
||||
{
|
||||
/* CCK and OFDM non-HT rates */
|
||||
case IEEE80211_CCK_RATE_1MB: ret = DESC_RATE1M; break;
|
||||
|
@ -153,7 +153,7 @@ void HalSetBrateCfg(
|
|||
|
||||
if ( is_brate )
|
||||
{
|
||||
switch(brate)
|
||||
switch (brate)
|
||||
{
|
||||
case IEEE80211_CCK_RATE_1MB: *pBrateCfg |= RATE_1M; break;
|
||||
case IEEE80211_CCK_RATE_2MB: *pBrateCfg |= RATE_2M; break;
|
||||
|
@ -292,7 +292,7 @@ Hal_MappingOutPipe(
|
|||
|
||||
bool result = true;
|
||||
|
||||
switch(NumOutPipe)
|
||||
switch (NumOutPipe)
|
||||
{
|
||||
case 2:
|
||||
_TwoOutPipeMapping(pAdapter, bWIFICfg);
|
||||
|
@ -387,7 +387,7 @@ SetHalDefVar(struct adapter *adapter, enum HAL_DEF_VARIABLE variable, void *valu
|
|||
PDM_ODM_T pDM_Odm = &(pHalData->odmpriv);
|
||||
u8 bResult = _SUCCESS;
|
||||
|
||||
switch(variable) {
|
||||
switch (variable) {
|
||||
case HW_DEF_FA_CNT_DUMP:
|
||||
if (*((u8*)value))
|
||||
pDM_Odm->DebugComponents |= (ODM_COMP_DIG |ODM_COMP_FA_CNT);
|
||||
|
@ -416,7 +416,7 @@ GetHalDefVar(struct adapter *adapter, enum HAL_DEF_VARIABLE variable, void *valu
|
|||
PDM_ODM_T pDM_Odm = &(pHalData->odmpriv);
|
||||
u8 bResult = _SUCCESS;
|
||||
|
||||
switch(variable) {
|
||||
switch (variable) {
|
||||
case HW_DEF_ODM_DBG_FLAG:
|
||||
*((u64*)value) = pDM_Odm->DebugComponents;
|
||||
break;
|
||||
|
|
|
@ -1172,7 +1172,7 @@ ODM_Write_DIG(
|
|||
if (pDM_Odm->SupportICType != ODM_RTL8188E)
|
||||
ODM_SetBBReg(pDM_Odm, ODM_REG(IGI_B,pDM_Odm), ODM_BIT(IGI,pDM_Odm), CurrentIGI);
|
||||
} else if (pDM_Odm->SupportPlatform & (ODM_AP|ODM_ADSL)) {
|
||||
switch(*(pDM_Odm->pOnePathCCA)) {
|
||||
switch (*(pDM_Odm->pOnePathCCA)) {
|
||||
case ODM_CCA_2R:
|
||||
ODM_SetBBReg(pDM_Odm, ODM_REG(IGI_A,pDM_Odm), ODM_BIT(IGI,pDM_Odm), CurrentIGI);
|
||||
if (pDM_Odm->SupportICType != ODM_RTL8188E)
|
||||
|
@ -2257,7 +2257,7 @@ u32 ODM_Get_Rate_Bitmap(
|
|||
|
||||
WirelessMode = pEntry->wireless_mode;
|
||||
|
||||
switch(WirelessMode)
|
||||
switch (WirelessMode)
|
||||
{
|
||||
case ODM_WM_B:
|
||||
if (ra_mask & 0x0000000c) /* 11M or 5.5M enable */
|
||||
|
|
|
@ -279,7 +279,7 @@ odm_RxPhyStatus92CSeries_Parsing(
|
|||
if (pDM_Odm->SupportICType & (ODM_RTL8188E|ODM_RTL8812)) {
|
||||
LNA_idx = ((cck_agc_rpt & 0xE0) >>5);
|
||||
VGA_idx = (cck_agc_rpt & 0x1F);
|
||||
switch(LNA_idx) {
|
||||
switch (LNA_idx) {
|
||||
case 7:
|
||||
if (VGA_idx <= 27)
|
||||
rx_pwr_all = -100 + 2*(27-VGA_idx); /* VGA_idx = 27~2 */
|
||||
|
@ -330,7 +330,7 @@ odm_RxPhyStatus92CSeries_Parsing(
|
|||
if (!cck_highpwr)
|
||||
{
|
||||
report =( cck_agc_rpt & 0xc0 )>>6;
|
||||
switch(report)
|
||||
switch (report)
|
||||
{
|
||||
/* 03312009 modified by cosa */
|
||||
/* Modify the RF RNA gain value to -40, -20, -2, 14 by Jenyu's suggestion */
|
||||
|
@ -355,7 +355,7 @@ odm_RxPhyStatus92CSeries_Parsing(
|
|||
/* report = pPhyStaRpt->cck_agc_rpt_ofdm_cfosho_a& 0x60; */
|
||||
|
||||
report = (cck_agc_rpt & 0x60)>>5;
|
||||
switch(report)
|
||||
switch (report)
|
||||
{
|
||||
case 0x3:
|
||||
rx_pwr_all = -46 - ((cck_agc_rpt & 0x1f)<<1) ;
|
||||
|
|
|
@ -256,7 +256,7 @@ void rtl8188e_set_FwPwrMode_cmd(struct adapter *padapter, u8 Mode)
|
|||
|
||||
H2CSetPwrMode.AwakeInterval = 2; /* DTIM =1 */
|
||||
|
||||
switch(Mode)
|
||||
switch (Mode)
|
||||
{
|
||||
case PS_MODE_ACTIVE:
|
||||
H2CSetPwrMode.Mode = 0;
|
||||
|
@ -493,7 +493,7 @@ static void ConstructNullFunctionData(
|
|||
SetPwrMgt(fctrl);
|
||||
}
|
||||
|
||||
switch(cur_network->network.InfrastructureMode)
|
||||
switch (cur_network->network.InfrastructureMode)
|
||||
{
|
||||
case Ndis802_11Infrastructure:
|
||||
SetToDs(fctrl);
|
||||
|
@ -854,7 +854,7 @@ void rtl8188e_set_p2p_ps_offload_cmd(struct adapter* padapter, u8 p2p_ps_state)
|
|||
struct P2P_PS_Offload_t *p2p_ps_offload = &pHalData->p2p_ps_offload;
|
||||
u8 i;
|
||||
|
||||
switch(p2p_ps_state)
|
||||
switch (p2p_ps_state)
|
||||
{
|
||||
case P2P_PS_DISABLE:
|
||||
DBG_8192C("P2P_PS_DISABLE\n");
|
||||
|
|
|
@ -1265,7 +1265,7 @@ Hal_EfuseSwitchToBank(
|
|||
{
|
||||
value32 = rtw_read32(pAdapter, EFUSE_TEST);
|
||||
bRet = true;
|
||||
switch(bank)
|
||||
switch (bank)
|
||||
{
|
||||
case 0:
|
||||
value32 = (value32 & ~EFUSE_SEL_MASK) | EFUSE_SEL(EFUSE_WIFI_SEL_0);
|
||||
|
@ -1392,7 +1392,7 @@ static void Hal_EFUSEGetEfuseDefinition88E(
|
|||
void * pOut
|
||||
)
|
||||
{
|
||||
switch(type) {
|
||||
switch (type) {
|
||||
case TYPE_EFUSE_MAX_SECTION:
|
||||
{
|
||||
u8* pMax_section;
|
||||
|
@ -1459,7 +1459,7 @@ static void Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
|||
void * pOut
|
||||
)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_EFUSE_MAX_SECTION:
|
||||
{
|
||||
|
@ -2549,7 +2549,7 @@ static void rtl8188e_GetHalODMVar(
|
|||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
PDM_ODM_T podmpriv = &pHalData->odmpriv;
|
||||
switch(eVariable){
|
||||
switch (eVariable){
|
||||
case HAL_ODM_STA_INFO:
|
||||
break;
|
||||
default:
|
||||
|
@ -2566,7 +2566,7 @@ static void rtl8188e_SetHalODMVar(
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
PDM_ODM_T podmpriv = &pHalData->odmpriv;
|
||||
/* _irqL irqL; */
|
||||
switch(eVariable){
|
||||
switch (eVariable){
|
||||
case HAL_ODM_STA_INFO:
|
||||
{
|
||||
struct sta_info *psta = (struct sta_info *)pValue1;
|
||||
|
@ -2853,7 +2853,7 @@ Hal_EEValueCheck(
|
|||
void * pOutValue
|
||||
)
|
||||
{
|
||||
switch(EEType)
|
||||
switch (EEType)
|
||||
{
|
||||
case EETYPE_TX_PWR:
|
||||
{
|
||||
|
|
|
@ -1273,7 +1273,7 @@ PHY_CheckBBAndRFOK(
|
|||
/* */
|
||||
/* Write Data to register and readback */
|
||||
/* */
|
||||
switch(CheckBlock)
|
||||
switch (CheckBlock)
|
||||
{
|
||||
case HW90_BLOCK_MAC:
|
||||
/* RT_ASSERT(false, ("PHY_CheckBBRFOK(): Never Write 0x100 here!")); */
|
||||
|
@ -1372,7 +1372,7 @@ phy_DbmToTxPwrIdx(
|
|||
/* The mapping may be different by different NICs. Do not use this formula for what needs accurate result. */
|
||||
/* By Bruce, 2008-01-29. */
|
||||
/* */
|
||||
switch(WirelessMode)
|
||||
switch (WirelessMode)
|
||||
{
|
||||
case WIRELESS_MODE_B:
|
||||
Offset = -7;
|
||||
|
@ -1426,7 +1426,7 @@ phy_TxPwrIdxToDbm(
|
|||
/* The mapping may be different by different NICs. Do not use this formula for what needs accurate result. */
|
||||
/* By Bruce, 2008-01-29. */
|
||||
/* */
|
||||
switch(WirelessMode) {
|
||||
switch (WirelessMode) {
|
||||
case WIRELESS_MODE_B:
|
||||
Offset = -7;
|
||||
break;
|
||||
|
@ -1726,7 +1726,7 @@ _PHY_SetBWMode92C(
|
|||
regBwOpMode = rtw_read8(Adapter, REG_BWOPMODE);
|
||||
regRRSR_RSC = rtw_read8(Adapter, REG_RRSR+2);
|
||||
|
||||
switch(pHalData->CurrentChannelBW) {
|
||||
switch (pHalData->CurrentChannelBW) {
|
||||
case HT_CHANNEL_WIDTH_20:
|
||||
regBwOpMode |= BW_OPMODE_20MHZ;
|
||||
/* 2007/02/07 Mark by Emily becasue we have not verify whether this register works */
|
||||
|
@ -1751,7 +1751,7 @@ _PHY_SetBWMode92C(
|
|||
/* 3 */
|
||||
/* 3<2>Set PHY related register */
|
||||
/* 3 */
|
||||
switch(pHalData->CurrentChannelBW)
|
||||
switch (pHalData->CurrentChannelBW)
|
||||
{
|
||||
/* 20 MHz channel*/
|
||||
case HT_CHANNEL_WIDTH_20:
|
||||
|
@ -1793,7 +1793,7 @@ _PHY_SetBWMode92C(
|
|||
/* RT_TRACE(COMP_SCAN, DBG_LOUD, ("SetBWModeCallback8190Pci: time of SetBWMode = %I64d us!\n", (EndTime - BeginTime))); */
|
||||
|
||||
/* 3<3>Set RF related register */
|
||||
switch(pHalData->rf_chip)
|
||||
switch (pHalData->rf_chip)
|
||||
{
|
||||
case RF_8225:
|
||||
/* PHY_SetRF8225Bandwidth(Adapter, pHalData->CurrentChannelBW); */
|
||||
|
@ -1933,7 +1933,7 @@ PHY_SwChnl8188E( /* Call after initialization */
|
|||
/* return; */
|
||||
|
||||
/* */
|
||||
switch(pHalData->CurrentWirelessMode)
|
||||
switch (pHalData->CurrentWirelessMode)
|
||||
{
|
||||
case WIRELESS_MODE_A:
|
||||
case WIRELESS_MODE_N_5G:
|
||||
|
|
|
@ -120,7 +120,7 @@ rtl8188e_PHY_RF6052SetBandwidth(
|
|||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
||||
switch(Bandwidth)
|
||||
switch (Bandwidth)
|
||||
{
|
||||
case HT_CHANNEL_WIDTH_20:
|
||||
pHalData->RfRegChnlVal[0] = ((pHalData->RfRegChnlVal[0] & 0xfffff3ff) | BIT(10) | BIT(11));
|
||||
|
@ -337,7 +337,7 @@ static void getTxPowerWriteValByRegulatory88E(
|
|||
/* Index 0 & 1= legacy OFDM, 2-5=HT_MCS rate */
|
||||
/* */
|
||||
for(rf=0; rf<2; rf++) {
|
||||
switch(Regulatory) {
|
||||
switch (Regulatory) {
|
||||
case 0: /* Realtek better performance */
|
||||
/* increase power diff defined by Realtek for large power */
|
||||
chnlGroup = 0;
|
||||
|
@ -617,7 +617,7 @@ phy_RF6052_Config_ParaFile(
|
|||
pPhyReg = &pHalData->PHYRegDef[eRFPath];
|
||||
|
||||
/*----Store original RFENV control type----*/
|
||||
switch(eRFPath)
|
||||
switch (eRFPath)
|
||||
{
|
||||
case RF_PATH_A:
|
||||
case RF_PATH_C:
|
||||
|
@ -645,7 +645,7 @@ phy_RF6052_Config_ParaFile(
|
|||
rtw_udelay_os(1);/* PlatformStallExecution(1); */
|
||||
|
||||
/*----Initialize RF fom connfiguration file----*/
|
||||
switch(eRFPath)
|
||||
switch (eRFPath)
|
||||
{
|
||||
case RF_PATH_A:
|
||||
if (HAL_STATUS_FAILURE ==ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,(ODM_RF_RADIO_PATH_E)eRFPath, (ODM_RF_RADIO_PATH_E)eRFPath))
|
||||
|
@ -662,7 +662,7 @@ phy_RF6052_Config_ParaFile(
|
|||
}
|
||||
|
||||
/*----Restore RFENV control type----*/;
|
||||
switch(eRFPath)
|
||||
switch (eRFPath)
|
||||
{
|
||||
case RF_PATH_A:
|
||||
case RF_PATH_C:
|
||||
|
|
|
@ -58,7 +58,7 @@ SwLedOn(
|
|||
}
|
||||
|
||||
LedCfg = rtw_read8(padapter, REG_LEDCFG2);
|
||||
switch(pLed->LedPin)
|
||||
switch (pLed->LedPin)
|
||||
{
|
||||
case LED_PIN_LED0:
|
||||
rtw_write8(padapter, REG_LEDCFG2, (LedCfg&0xf0)|BIT5|BIT6); /* SW control led0 on. */
|
||||
|
@ -97,7 +97,7 @@ SwLedOff(
|
|||
|
||||
LedCfg = rtw_read8(padapter, REG_LEDCFG2);/* 0x4E */
|
||||
|
||||
switch(pLed->LedPin)
|
||||
switch (pLed->LedPin)
|
||||
{
|
||||
case LED_PIN_LED0:
|
||||
if (pHalData->bLedOpenDrain == true) /* Open-drain arrangement for controlling the LED) */
|
||||
|
|
|
@ -150,7 +150,7 @@ static void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxd
|
|||
|
||||
static void fill_txdesc_vcs(struct pkt_attrib *pattrib, __le32 *pdw)
|
||||
{
|
||||
switch(pattrib->vcs_mode)
|
||||
switch (pattrib->vcs_mode)
|
||||
{
|
||||
case RTS_CTS:
|
||||
*pdw |= cpu_to_le32(RTS_EN);
|
||||
|
|
|
@ -50,7 +50,7 @@ _ConfigNormalChipOutEP_8188E(
|
|||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
||||
switch(NumOutPipe){
|
||||
switch (NumOutPipe){
|
||||
case 3:
|
||||
pHalData->OutEpQueueSel=TX_SELE_HQ| TX_SELE_LQ|TX_SELE_NQ;
|
||||
pHalData->OutEpNumber=3;
|
||||
|
@ -450,7 +450,7 @@ _InitNormalChipOneOutEpPriority(
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
||||
u16 value = 0;
|
||||
switch(pHalData->OutEpQueueSel)
|
||||
switch (pHalData->OutEpQueueSel)
|
||||
{
|
||||
case TX_SELE_HQ:
|
||||
value = QUEUE_HIGH;
|
||||
|
@ -490,7 +490,7 @@ _InitNormalChipTwoOutEpPriority(
|
|||
u16 valueHi = 0;
|
||||
u16 valueLow = 0;
|
||||
|
||||
switch(pHalData->OutEpQueueSel)
|
||||
switch (pHalData->OutEpQueueSel)
|
||||
{
|
||||
case (TX_SELE_HQ | TX_SELE_LQ):
|
||||
valueHi = QUEUE_HIGH;
|
||||
|
@ -564,7 +564,7 @@ _InitQueuePriority(
|
|||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
||||
switch(pHalData->OutEpNumber)
|
||||
switch (pHalData->OutEpNumber)
|
||||
{
|
||||
case 1:
|
||||
_InitNormalChipOneOutEpPriority(Adapter);
|
||||
|
@ -844,7 +844,7 @@ usb_AggSettingRxUpdate(
|
|||
valueDMA = rtw_read8(Adapter, REG_TRXDMA_CTRL);
|
||||
valueUSB = rtw_read8(Adapter, REG_USB_SPECIAL_OPTION);
|
||||
|
||||
switch(pHalData->UsbRxAggMode)
|
||||
switch (pHalData->UsbRxAggMode)
|
||||
{
|
||||
case USB_RX_AGG_DMA:
|
||||
valueDMA |= RXDMA_AGG_EN;
|
||||
|
@ -868,7 +868,7 @@ usb_AggSettingRxUpdate(
|
|||
rtw_write8(Adapter, REG_TRXDMA_CTRL, valueDMA);
|
||||
rtw_write8(Adapter, REG_USB_SPECIAL_OPTION, valueUSB);
|
||||
|
||||
switch(pHalData->UsbRxAggMode)
|
||||
switch (pHalData->UsbRxAggMode)
|
||||
{
|
||||
case USB_RX_AGG_DMA:
|
||||
rtw_write8(Adapter, REG_RXDMA_AGG_PG_TH, pHalData->UsbRxAggPageCount);
|
||||
|
@ -892,7 +892,7 @@ usb_AggSettingRxUpdate(
|
|||
break;
|
||||
}
|
||||
|
||||
switch(PBP_128)
|
||||
switch (PBP_128)
|
||||
{
|
||||
case PBP_128:
|
||||
pHalData->HwRxPageSize = 128;
|
||||
|
@ -1773,7 +1773,7 @@ _ReadLEDSetting(
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
pledpriv->bRegUseLed = true;
|
||||
|
||||
switch(pHalData->CustomerID)
|
||||
switch (pHalData->CustomerID)
|
||||
{
|
||||
default:
|
||||
pledpriv->LedStrategy = SW_LED_MODE1;
|
||||
|
@ -2207,7 +2207,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8* val)
|
|||
DM_ODM_T *podmpriv = &pHalData->odmpriv;
|
||||
;
|
||||
|
||||
switch(variable)
|
||||
switch (variable)
|
||||
{
|
||||
case HW_VAR_MEDIA_STATUS:
|
||||
{
|
||||
|
@ -2629,7 +2629,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8* val)
|
|||
MinSpacingToSet = *((u8 *)val);
|
||||
if (MinSpacingToSet <= 7)
|
||||
{
|
||||
switch(Adapter->securitypriv.dot11PrivacyAlgrthm)
|
||||
switch (Adapter->securitypriv.dot11PrivacyAlgrthm)
|
||||
{
|
||||
case _NO_PRIVACY_:
|
||||
case _AES_:
|
||||
|
@ -2859,7 +2859,7 @@ static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8* val)
|
|||
DM_ODM_T *podmpriv = &pHalData->odmpriv;
|
||||
;
|
||||
|
||||
switch(variable)
|
||||
switch (variable)
|
||||
{
|
||||
case HW_VAR_BASIC_RATE:
|
||||
*((u16 *)(val)) = pHalData->BasicRateSet;
|
||||
|
@ -2943,7 +2943,7 @@ static u8 GetHalDefVar8188EUsb(
|
|||
DM_ODM_T *podmpriv = &pHalData->odmpriv;
|
||||
u8 bResult = _SUCCESS;
|
||||
|
||||
switch(eVariable)
|
||||
switch (eVariable)
|
||||
{
|
||||
case HAL_DEF_UNDERCORATEDSMOOTHEDPWDB:
|
||||
{
|
||||
|
@ -3068,7 +3068,7 @@ static u8 SetHalDefVar8188EUsb(
|
|||
DM_ODM_T *podmpriv = &pHalData->odmpriv;
|
||||
u8 bResult = _SUCCESS;
|
||||
|
||||
switch(eVariable)
|
||||
switch (eVariable)
|
||||
{
|
||||
case HAL_DEF_DBG_DM_FUNC:
|
||||
{
|
||||
|
@ -3350,7 +3350,7 @@ static void rtl8188eu_init_default_value(struct adapter * padapter)
|
|||
static u8 rtl8188eu_ps_func(struct adapter *Adapter, enum HAL_INTF_PS_FUNC efunc_id, u8 *val)
|
||||
{
|
||||
u8 bResult = true;
|
||||
switch(efunc_id){
|
||||
switch (efunc_id){
|
||||
|
||||
#if defined(CONFIG_AUTOSUSPEND)
|
||||
case HAL_USB_SELECT_SUSPEND:
|
||||
|
|
|
@ -350,7 +350,7 @@ static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs)
|
|||
{
|
||||
DBG_8192C("###=> usb_read_interrupt_complete => urb status(%d)\n", purb->status);
|
||||
|
||||
switch(purb->status) {
|
||||
switch (purb->status) {
|
||||
case -EINVAL:
|
||||
case -EPIPE:
|
||||
case -ENODEV:
|
||||
|
@ -552,7 +552,7 @@ static int recvbuf2recvframe(struct adapter *padapter, struct sk_buff *pskb)
|
|||
recvframe_put(precvframe, skb_len);
|
||||
/* recvframe_pull(precvframe, drvinfo_sz + RXDESC_SIZE); */
|
||||
|
||||
switch(pHalData->UsbRxAggMode) {
|
||||
switch (pHalData->UsbRxAggMode) {
|
||||
case USB_RX_AGG_DMA:
|
||||
case USB_RX_AGG_MIX:
|
||||
pkt_offset = (u16)_RND128(pkt_offset);
|
||||
|
@ -707,7 +707,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
padapter->bSurpriseRemoved = true;
|
||||
}
|
||||
|
||||
switch(purb->status) {
|
||||
switch (purb->status) {
|
||||
case -EINVAL:
|
||||
case -EPIPE:
|
||||
case -ENODEV:
|
||||
|
|
|
@ -1232,7 +1232,7 @@ enum secondary_ch_offset {
|
|||
};
|
||||
u8 secondary_ch_offset_to_hal_ch_offset(u8 ch_offset);
|
||||
u8 hal_ch_offset_to_secondary_ch_offset(u8 ch_offset);
|
||||
u8 *rtw_set_ie_ch_switch(u8 *buf, u32 *buf_len, u8 ch_switch_mode, u8 new_ch, u8 ch_switch_cnt);
|
||||
u8 *rtw_set_ie_ch_switch (u8 *buf, u32 *buf_len, u8 ch_switch_mode, u8 new_ch, u8 ch_switch_cnt);
|
||||
u8 *rtw_set_ie_secondary_ch_offset(u8 *buf, u32 *buf_len, u8 secondary_ch_offset);
|
||||
u8 *rtw_set_ie_mesh_ch_switch_parm(u8 *buf, u32 *buf_len, u8 ttl, u8 flags, u16 reason, u16 precedence);
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ void sta_info_update(struct adapter *padapter, struct sta_info *psta);
|
|||
void ap_sta_info_defer_update(struct adapter *padapter, struct sta_info *psta);
|
||||
u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16 reason);
|
||||
int rtw_sta_flush(struct adapter *padapter);
|
||||
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);
|
||||
void start_ap_mode(struct adapter *padapter);
|
||||
void stop_ap_mode(struct adapter *padapter);
|
||||
|
||||
|
|
|
@ -619,7 +619,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
|
|||
int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms);
|
||||
int issue_deauth(struct adapter *padapter, unsigned char *da, unsigned short reason);
|
||||
int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int try_cnt, int wait_ms);
|
||||
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);
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
void issue_action_SA_Query(struct adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short tid);
|
||||
#endif /* CONFIG_IEEE80211W */
|
||||
|
|
|
@ -201,7 +201,7 @@ struct sha256_state {
|
|||
|
||||
#define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\
|
||||
do{\
|
||||
switch(psecuritypriv->dot11AuthAlgrthm)\
|
||||
switch (psecuritypriv->dot11AuthAlgrthm)\
|
||||
{\
|
||||
case dot11AuthAlgrthm_Open:\
|
||||
case dot11AuthAlgrthm_Shared:\
|
||||
|
@ -223,7 +223,7 @@ do{\
|
|||
|
||||
#define SET_ICE_IV_LEN( iv_len, icv_len, encrypt)\
|
||||
do{\
|
||||
switch(encrypt)\
|
||||
switch (encrypt)\
|
||||
{\
|
||||
case _WEP40_:\
|
||||
case _WEP104_:\
|
||||
|
|
|
@ -816,7 +816,7 @@ static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid)
|
|||
|
||||
psetkeyparm->set_tx = 1;
|
||||
|
||||
switch(alg) {
|
||||
switch (alg) {
|
||||
case _WEP40_:
|
||||
keylen = 5;
|
||||
break;
|
||||
|
@ -854,7 +854,7 @@ static int set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid)
|
|||
{
|
||||
u8 alg;
|
||||
|
||||
switch(keylen)
|
||||
switch (keylen)
|
||||
{
|
||||
case 5:
|
||||
alg =_WEP40_;
|
||||
|
@ -2312,7 +2312,7 @@ static int rtw_cfg80211_set_wpa_ie(struct adapter *padapter, u8 *pie, size_t iel
|
|||
pairwise_cipher = WPA_CIPHER_NONE;
|
||||
}
|
||||
|
||||
switch(group_cipher)
|
||||
switch (group_cipher)
|
||||
{
|
||||
case WPA_CIPHER_NONE:
|
||||
padapter->securitypriv.dot118021XGrpPrivacy=_NO_PRIVACY_;
|
||||
|
@ -2336,7 +2336,7 @@ static int rtw_cfg80211_set_wpa_ie(struct adapter *padapter, u8 *pie, size_t iel
|
|||
break;
|
||||
}
|
||||
|
||||
switch(pairwise_cipher)
|
||||
switch (pairwise_cipher)
|
||||
{
|
||||
case WPA_CIPHER_NONE:
|
||||
padapter->securitypriv.dot11PrivacyAlgrthm=_NO_PRIVACY_;
|
||||
|
@ -3843,7 +3843,7 @@ void rtw_cfg80211_issue_p2p_provision_request(struct adapter *padapter, const u8
|
|||
rtw_get_wps_attr_content( wpsie, wpsielen, WPS_ATTR_DEVICE_PWID, (u8*) &be_tmp, &wps_devicepassword_id_len);
|
||||
wps_devicepassword_id = be16_to_cpu(be_tmp);
|
||||
|
||||
switch(wps_devicepassword_id) {
|
||||
switch (wps_devicepassword_id) {
|
||||
case WPS_DPID_PIN:
|
||||
pwdinfo->tx_prov_disc_info.wps_config_method_request = WPS_CM_LABEL;
|
||||
break;
|
||||
|
|
|
@ -904,7 +904,7 @@ static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ie
|
|||
pairwise_cipher = WPA_CIPHER_NONE;
|
||||
}
|
||||
|
||||
switch(group_cipher)
|
||||
switch (group_cipher)
|
||||
{
|
||||
case WPA_CIPHER_NONE:
|
||||
padapter->securitypriv.dot118021XGrpPrivacy=_NO_PRIVACY_;
|
||||
|
@ -928,7 +928,7 @@ static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ie
|
|||
break;
|
||||
}
|
||||
|
||||
switch(pairwise_cipher)
|
||||
switch (pairwise_cipher)
|
||||
{
|
||||
case WPA_CIPHER_NONE:
|
||||
padapter->securitypriv.dot11PrivacyAlgrthm=_NO_PRIVACY_;
|
||||
|
@ -1114,7 +1114,7 @@ static int rtw_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
|
|||
goto exit;
|
||||
}
|
||||
|
||||
switch(wrqu->mode)
|
||||
switch (wrqu->mode)
|
||||
{
|
||||
case IW_MODE_AUTO:
|
||||
networkType = Ndis802_11AutoUnknown;
|
||||
|
@ -1654,7 +1654,7 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
|
|||
while (len >= 1) {
|
||||
section = *(pos++); len-=1;
|
||||
|
||||
switch(section) {
|
||||
switch (section) {
|
||||
case WEXT_CSCAN_SSID_SECTION:
|
||||
/* DBG_871X("WEXT_CSCAN_SSID_SECTION\n"); */
|
||||
if (len < 1) {
|
||||
|
@ -2032,7 +2032,7 @@ static int rtw_wx_set_rate(struct net_device *dev,
|
|||
}
|
||||
target_rate = target_rate/100000;
|
||||
|
||||
switch(target_rate){
|
||||
switch (target_rate){
|
||||
case 10:
|
||||
ratevalue = 0;
|
||||
break;
|
||||
|
@ -2293,7 +2293,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
|
|||
|
||||
DBG_871X("(keyindex_provided == 1), keyid=%d, key_len=%d\n", key, padapter->securitypriv.dot11DefKeylen[key]);
|
||||
|
||||
switch(padapter->securitypriv.dot11DefKeylen[key]) {
|
||||
switch (padapter->securitypriv.dot11DefKeylen[key]) {
|
||||
case 5:
|
||||
padapter->securitypriv.dot11PrivacyAlgrthm=_WEP40_;
|
||||
break;
|
||||
|
@ -2357,7 +2357,7 @@ static int rtw_wx_get_enc(struct net_device *dev,
|
|||
|
||||
erq->flags = key + 1;
|
||||
|
||||
switch(padapter->securitypriv.ndisencryptstatus) {
|
||||
switch (padapter->securitypriv.ndisencryptstatus) {
|
||||
case Ndis802_11EncryptionNotSupported:
|
||||
case Ndis802_11EncryptionDisabled:
|
||||
erq->length = 0;
|
||||
|
@ -2917,7 +2917,7 @@ static void rtw_dbg_mode_hdl(struct adapter *padapter, u32 id, u8 *pdata, u32 le
|
|||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
|
||||
switch(id)
|
||||
switch (id)
|
||||
{
|
||||
case GEN_MP_IOCTL_SUBCODE(MP_START):
|
||||
DBG_871X("871x_driver is only for normal mode, can't enter mp mode\n");
|
||||
|
@ -5529,10 +5529,10 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
|
||||
extra_arg = *(pdata+1);
|
||||
|
||||
switch(major_cmd)
|
||||
switch (major_cmd)
|
||||
{
|
||||
case 0x70:/* read_reg */
|
||||
switch(minor_cmd)
|
||||
switch (minor_cmd)
|
||||
{
|
||||
case 1:
|
||||
DBG_871X("rtw_read8(0x%x)=0x%02x\n", arg, rtw_read8(padapter, arg));
|
||||
|
@ -5546,7 +5546,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
}
|
||||
break;
|
||||
case 0x71:/* write_reg */
|
||||
switch(minor_cmd)
|
||||
switch (minor_cmd)
|
||||
{
|
||||
case 1:
|
||||
rtw_write8(padapter, arg, extra_arg);
|
||||
|
@ -5577,7 +5577,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
DBG_871X("write RF_reg path(0x%02x),offset(0x%x),value(0x%08x)\n",minor_cmd,arg, rtw_hal_read_rfreg(padapter, minor_cmd, arg, 0xffffffff));
|
||||
break;
|
||||
case 0x76:
|
||||
switch(minor_cmd) {
|
||||
switch (minor_cmd) {
|
||||
case 0x00: /* normal mode, */
|
||||
padapter->recvpriv.is_signal_dbg = 0;
|
||||
break;
|
||||
|
@ -5589,7 +5589,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
}
|
||||
break;
|
||||
case 0x78: /* IOL test */
|
||||
switch(minor_cmd)
|
||||
switch (minor_cmd)
|
||||
{
|
||||
case 0x04: /* LLT table initialization test */
|
||||
{
|
||||
|
@ -5757,7 +5757,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
, WLAN_REASON_EXPIRATION_CHK);
|
||||
break;
|
||||
case 0x7F:
|
||||
switch(minor_cmd)
|
||||
switch (minor_cmd)
|
||||
{
|
||||
case 0x0:
|
||||
DBG_871X("fwstate=0x%x\n", get_fwstate(pmlmepriv));
|
||||
|
@ -6179,7 +6179,7 @@ static int wpa_set_param(struct net_device *dev, u8 name, u32 value)
|
|||
case IEEE_PARAM_WPA_ENABLED:
|
||||
padapter->securitypriv.dot11AuthAlgrthm= dot11AuthAlgrthm_8021X; /* 802.1x */
|
||||
|
||||
switch((value)&0xff) {
|
||||
switch ((value)&0xff) {
|
||||
case 1 : /* WPA */
|
||||
padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeWPAPSK; /* WPA_PSK */
|
||||
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption2Enabled;
|
||||
|
@ -6389,7 +6389,7 @@ static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid)
|
|||
|
||||
psetkeyparm->set_tx = 1;
|
||||
|
||||
switch(alg)
|
||||
switch (alg)
|
||||
{
|
||||
case _WEP40_:
|
||||
keylen = 5;
|
||||
|
@ -6428,7 +6428,7 @@ static int set_wep_key(struct adapter *padapter, u8 *key, u8 keylen, int keyid)
|
|||
{
|
||||
u8 alg;
|
||||
|
||||
switch(keylen)
|
||||
switch (keylen)
|
||||
{
|
||||
case 5:
|
||||
alg =_WEP40_;
|
||||
|
@ -7511,7 +7511,7 @@ static int rtw_wx_set_priv(struct net_device *dev,
|
|||
|
||||
i = rtw_android_cmdstr_to_num(ext);
|
||||
|
||||
switch(i) {
|
||||
switch (i) {
|
||||
case ANDROID_WIFI_CMD_START :
|
||||
indicate_wx_custom_event(padapter, "START");
|
||||
break;
|
||||
|
@ -8574,7 +8574,7 @@ static int rtw_tdls_discovery(struct net_device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int rtw_tdls_ch_switch(struct net_device *dev,
|
||||
static int rtw_tdls_ch_switch (struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ inline int RTW_STATUS_CODE(int error_code){
|
|||
if (error_code >=0)
|
||||
return _SUCCESS;
|
||||
|
||||
switch(error_code) {
|
||||
switch (error_code) {
|
||||
/* case -ETIMEDOUT: */
|
||||
/* return RTW_STATUS_TIMEDOUT; */
|
||||
default:
|
||||
|
@ -250,7 +250,7 @@ void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 s
|
|||
}
|
||||
}
|
||||
|
||||
switch(status) {
|
||||
switch (status) {
|
||||
case MSTAT_ALLOC_SUCCESS:
|
||||
ATOMIC_INC(&(rtw_mem_type_stat[mstat_tf_idx(flags)].alloc_cnt));
|
||||
alloc = ATOMIC_ADD_RETURN(&(rtw_mem_type_stat[mstat_tf_idx(flags)].alloc), sz);
|
||||
|
|
|
@ -328,7 +328,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter, union recv_frame *precv_frame
|
|||
}
|
||||
if (psta)
|
||||
{
|
||||
switch(pattrib->priority)
|
||||
switch (pattrib->priority)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
|
|
|
@ -371,7 +371,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
|
||||
cmd_num = rtw_android_cmdstr_to_num(command);
|
||||
|
||||
switch(cmd_num) {
|
||||
switch (cmd_num) {
|
||||
case ANDROID_WIFI_CMD_START:
|
||||
/* bytes_written = wl_android_wifi_on(net); */
|
||||
goto response;
|
||||
|
@ -386,7 +386,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
switch(cmd_num) {
|
||||
switch (cmd_num) {
|
||||
|
||||
case ANDROID_WIFI_CMD_STOP:
|
||||
break;
|
||||
|
|
|
@ -316,7 +316,7 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
|
||||
;
|
||||
|
||||
switch(pxmitbuf->flags)
|
||||
switch (pxmitbuf->flags)
|
||||
{
|
||||
case VO_QUEUE_INX:
|
||||
pxmitpriv->voq_cnt--;
|
||||
|
@ -440,7 +440,7 @@ u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
|
|||
|
||||
_enter_critical(&pxmitpriv->lock, &irqL);
|
||||
|
||||
switch(addr)
|
||||
switch (addr)
|
||||
{
|
||||
case VO_QUEUE_INX:
|
||||
pxmitpriv->voq_cnt++;
|
||||
|
@ -484,7 +484,7 @@ u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
|
|||
else
|
||||
psta = rtw_get_stainfo(pstapriv, pattrib->dst);
|
||||
if (psta) {
|
||||
switch(pattrib->priority) {
|
||||
switch (pattrib->priority) {
|
||||
case 1:
|
||||
case 2:
|
||||
psta->tx_bk_cnt += agg_num;
|
||||
|
|
Loading…
Reference in a new issue