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
|
@ -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…
Add table
Add a link
Reference in a new issue