mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Change "for(" to "for ("
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
c818db1282
commit
9ee6ae40c3
40 changed files with 278 additions and 278 deletions
|
@ -1313,7 +1313,7 @@ static int rtw_cfg80211_set_encryption(struct net_device *dev, struct ieee_param
|
|||
/* save the IGTK key, length 16 bytes */
|
||||
memcpy(padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
|
||||
/*DBG_871X("IGTK key below:\n");
|
||||
for(no=0;no<16;no++)
|
||||
for (no=0;no<16;no++)
|
||||
printk(" %02x ", padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey[no]);
|
||||
DBG_871X("\n");*/
|
||||
padapter->securitypriv.dot11wBIPKeyid = param->u.crypt.idx;
|
||||
|
@ -2089,12 +2089,12 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
|
|||
|
||||
spin_lock_bh(&pmlmepriv->lock);
|
||||
if (request->n_channels == 1) {
|
||||
for(i=1;i<survey_times_for_one_ch;i++)
|
||||
for (i=1;i<survey_times_for_one_ch;i++)
|
||||
memcpy(&ch[i], &ch[0], sizeof(struct rtw_ieee80211_channel));
|
||||
_status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT, ch, survey_times_for_one_ch);
|
||||
} else if (request->n_channels <= 4) {
|
||||
for(j=request->n_channels-1;j>=0;j--)
|
||||
for(i=0;i<survey_times;i++)
|
||||
for (j=request->n_channels-1;j>=0;j--)
|
||||
for (i=0;i<survey_times;i++)
|
||||
memcpy(&ch[j*survey_times+i], &ch[j], sizeof(struct rtw_ieee80211_channel));
|
||||
_status = rtw_sitesurvey_cmd(padapter, ssid, RTW_SSID_SCAN_AMOUNT, ch, survey_times * request->n_channels);
|
||||
} else {
|
||||
|
@ -2266,7 +2266,7 @@ static int rtw_cfg80211_set_wpa_ie(struct adapter *padapter, u8 *pie, size_t iel
|
|||
{
|
||||
int i;
|
||||
DBG_8192C("set wpa_ie(length:%zu):\n", ielen);
|
||||
for(i=0;i<ielen;i=i+8)
|
||||
for (i=0;i<ielen;i=i+8)
|
||||
DBG_8192C("0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x\n",buf[i],buf[i+1],buf[i+2],buf[i+3],buf[i+4],buf[i+5],buf[i+6],buf[i+7]);
|
||||
}
|
||||
|
||||
|
@ -2809,7 +2809,7 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy,
|
|||
blInserted = false;
|
||||
|
||||
/* overwrite PMKID */
|
||||
for(index=0 ; index<NUM_PMKID_CACHE; index++)
|
||||
for (index=0 ; index<NUM_PMKID_CACHE; index++)
|
||||
{
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, (void *)pmksa->bssid, ETH_ALEN) ==true )
|
||||
{ /* BSSID is matched, the same AP => rewrite with new PMKID. */
|
||||
|
@ -2853,7 +2853,7 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy,
|
|||
|
||||
DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(netdev));
|
||||
|
||||
for(index=0 ; index<NUM_PMKID_CACHE; index++)
|
||||
for (index=0 ; index<NUM_PMKID_CACHE; index++)
|
||||
{
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, (void *)pmksa->bssid, ETH_ALEN) ==true )
|
||||
{ /* BSSID is matched, the same AP => Remove this PMKID information and reset it. */
|
||||
|
@ -3652,7 +3652,7 @@ static int cfg80211_rtw_change_bss(struct wiphy *wiphy, struct net_device *ndev,
|
|||
DBG_8192C("ap_isolate=%d\n", params->ap_isolate);
|
||||
|
||||
DBG_8192C("basic_rates_len=%d\n", params->basic_rates_len);
|
||||
for(i=0; i<params->basic_rates_len; i++)
|
||||
for (i=0; i<params->basic_rates_len; i++)
|
||||
{
|
||||
DBG_8192C("basic_rates=%d\n", params->basic_rates[i]);
|
||||
|
||||
|
|
|
@ -870,7 +870,7 @@ static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ie
|
|||
{
|
||||
int i;
|
||||
DBG_871X("\n wpa_ie(length:%d):\n", ielen);
|
||||
for(i=0;i<ielen;i=i+8)
|
||||
for (i=0;i<ielen;i=i+8)
|
||||
DBG_871X("0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x\n",buf[i],buf[i+1],buf[i+2],buf[i+3],buf[i+4],buf[i+5],buf[i+6],buf[i+7]);
|
||||
}
|
||||
|
||||
|
@ -1200,7 +1200,7 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
|
|||
blInserted = false;
|
||||
|
||||
/* overwrite PMKID */
|
||||
for(j=0 ; j<NUM_PMKID_CACHE; j++) {
|
||||
for (j=0 ; j<NUM_PMKID_CACHE; j++) {
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN) ==true )
|
||||
{ /* BSSID is matched, the same AP => rewrite with new PMKID. */
|
||||
|
||||
|
@ -1230,7 +1230,7 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
|
|||
} else if ( pPMK->cmd == IW_PMKSA_REMOVE ) {
|
||||
DBG_871X( "[rtw_wx_set_pmkid] IW_PMKSA_REMOVE!\n" );
|
||||
intReturn = true;
|
||||
for(j=0 ; j<NUM_PMKID_CACHE; j++) {
|
||||
for (j=0 ; j<NUM_PMKID_CACHE; j++) {
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN) ==true )
|
||||
{ /* BSSID is matched, the same AP => Remove this PMKID information and reset it. */
|
||||
memset( psecuritypriv->PMKIDList[ j ].Bssid, 0x00, ETH_ALEN );
|
||||
|
@ -2076,7 +2076,7 @@ static int rtw_wx_set_rate(struct net_device *dev,
|
|||
|
||||
set_rate:
|
||||
|
||||
for(i=0; i<NumRates; i++)
|
||||
for (i=0; i<NumRates; i++)
|
||||
{
|
||||
if (ratevalue==mpdatarate[i])
|
||||
{
|
||||
|
@ -3468,7 +3468,7 @@ static int rtw_p2p_profilefound(struct net_device *dev,
|
|||
|
||||
/* Add this profile information into pwdinfo->profileinfo */
|
||||
/* Ex: 1XX:XX:XX:XX:XX:XXYYSSID */
|
||||
for( jj = 0, kk = 1; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
for ( jj = 0, kk = 1; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
{
|
||||
pwdinfo->profileinfo[ pwdinfo->profileindex ].peermac[ jj ] = key_2char2num(extra[ kk ], extra[ kk+ 1 ]);
|
||||
}
|
||||
|
@ -4187,7 +4187,7 @@ static int rtw_p2p_connect(struct net_device *dev,
|
|||
return -1;
|
||||
}
|
||||
|
||||
for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
for ( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
{
|
||||
peerMAC[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
|
||||
}
|
||||
|
@ -4302,7 +4302,7 @@ static int rtw_p2p_invite_req(struct net_device *dev,
|
|||
pinvite_req_info->token = 3;
|
||||
}
|
||||
|
||||
for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
for ( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
{
|
||||
pinvite_req_info->peer_macaddr[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
|
||||
}
|
||||
|
@ -4396,7 +4396,7 @@ static int rtw_p2p_invite_req(struct net_device *dev,
|
|||
|
||||
if ( uintPeerChannel ) {
|
||||
/* Store the GO's bssid */
|
||||
for( jj = 0, kk = 18; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
for ( jj = 0, kk = 18; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
{
|
||||
pinvite_req_info->go_bssid[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
|
||||
}
|
||||
|
@ -4594,7 +4594,7 @@ static int rtw_p2p_set_pc(struct net_device *dev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
for ( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
{
|
||||
peerMAC[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
|
||||
}
|
||||
|
@ -4907,7 +4907,7 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
|
|||
pwdinfo->tx_prov_disc_info.benable = false;
|
||||
}
|
||||
|
||||
for( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
for ( jj = 0, kk = 0; jj < ETH_ALEN; jj++, kk += 3 )
|
||||
peerMAC[ jj ] = key_2char2num( extra[kk], extra[kk+ 1] );
|
||||
|
||||
if ( _rtw_memcmp( &extra[ 18 ], "display", 7 ) )
|
||||
|
@ -5447,13 +5447,13 @@ static void mac_reg_dump(struct adapter *padapter)
|
|||
{
|
||||
int i,j=1;
|
||||
printk("\n======= MAC REG =======\n");
|
||||
for(i=0x0;i<0x300;i+=4)
|
||||
for (i=0x0;i<0x300;i+=4)
|
||||
{
|
||||
if (j%4==1) printk("0x%02x",i);
|
||||
printk(" 0x%08x ",rtw_read32(padapter,i));
|
||||
if ((j++)%4 == 0) printk("\n");
|
||||
}
|
||||
for(i=0x400;i<0x800;i+=4)
|
||||
for (i=0x400;i<0x800;i+=4)
|
||||
{
|
||||
if (j%4==1) printk("0x%02x",i);
|
||||
printk(" 0x%08x ",rtw_read32(padapter,i));
|
||||
|
@ -5465,7 +5465,7 @@ static void bb_reg_dump(struct adapter *padapter)
|
|||
{
|
||||
int i,j=1;
|
||||
printk("\n======= BB REG =======\n");
|
||||
for(i=0x800;i<0x1000;i+=4)
|
||||
for (i=0x800;i<0x1000;i+=4)
|
||||
{
|
||||
if (j%4==1) printk("0x%02x",i);
|
||||
|
||||
|
@ -5487,10 +5487,10 @@ static void rf_reg_dump(struct adapter *padapter)
|
|||
else
|
||||
path_nums = 2;
|
||||
|
||||
for(path=0;path<path_nums;path++)
|
||||
for (path=0;path<path_nums;path++)
|
||||
{
|
||||
printk("\nRF_Path(%x)\n",path);
|
||||
for(i=0;i<0x100;i++)
|
||||
for (i=0;i<0x100;i++)
|
||||
{
|
||||
/* value = PHY_QueryRFReg(padapter, (RF_RADIO_PATH_E)path,i, bMaskDWord); */
|
||||
value = rtw_hal_read_rfreg(padapter, path, i, 0xffffffff);
|
||||
|
@ -5625,7 +5625,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
break;
|
||||
}
|
||||
|
||||
for(i=0;i<blink_num;i++){
|
||||
for (i=0;i<blink_num;i++){
|
||||
rtw_IOL_append_WB_cmd(xmit_frame, reg, 0x00,0xff);
|
||||
rtw_IOL_append_DELAY_MS_cmd(xmit_frame, blink_delay_ms);
|
||||
rtw_IOL_append_WB_cmd(xmit_frame, reg, 0x08,0xff);
|
||||
|
@ -5652,7 +5652,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
break;
|
||||
}
|
||||
|
||||
for(i=0;i<write_num;i++){
|
||||
for (i=0;i<write_num;i++){
|
||||
rtw_IOL_append_WB_cmd(xmit_frame, reg, i+start_value,0xFF);
|
||||
}
|
||||
if (_SUCCESS != rtw_IOL_exec_cmds_sync(padapter, xmit_frame, 5000,0))
|
||||
|
@ -5684,7 +5684,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
break;
|
||||
}
|
||||
|
||||
for(i=0;i<write_num;i++){
|
||||
for (i=0;i<write_num;i++){
|
||||
rtw_IOL_append_WW_cmd(xmit_frame, reg, i+start_value,0xFFFF);
|
||||
}
|
||||
if (_SUCCESS !=rtw_IOL_exec_cmds_sync(padapter, xmit_frame, 5000,0))
|
||||
|
@ -5716,7 +5716,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
break;
|
||||
}
|
||||
|
||||
for(i=0;i<write_num;i++){
|
||||
for (i=0;i<write_num;i++){
|
||||
rtw_IOL_append_WD_cmd(xmit_frame, reg, i+start_value,0xFFFFFFFF);
|
||||
}
|
||||
if (_SUCCESS !=rtw_IOL_exec_cmds_sync(padapter, xmit_frame, 5000,0))
|
||||
|
@ -5796,7 +5796,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
DBG_871X("ampdu_enable = %d\n", psta->htpriv.ampdu_enable);
|
||||
DBG_871X("agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap);
|
||||
|
||||
for(i=0;i<16;i++)
|
||||
for (i=0;i<16;i++)
|
||||
{
|
||||
preorder_ctrl = &psta->recvreorder_ctrl[i];
|
||||
if (preorder_ctrl->enable)
|
||||
|
@ -5850,7 +5850,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
#endif
|
||||
spin_lock_bh(&pstapriv->sta_hash_lock);
|
||||
|
||||
for(i=0; i< NUM_STA; i++)
|
||||
for (i=0; i< NUM_STA; i++)
|
||||
{
|
||||
phead = &(pstapriv->sta_hash[i]);
|
||||
plist = get_next(phead);
|
||||
|
@ -5883,7 +5883,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
|
||||
|
||||
|
||||
for(j=0;j<16;j++)
|
||||
for (j=0;j<16;j++)
|
||||
{
|
||||
preorder_ctrl = &psta->recvreorder_ctrl[j];
|
||||
if (preorder_ctrl->enable)
|
||||
|
@ -5909,7 +5909,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
|||
|
||||
spin_lock_bh(&pstapriv->sta_hash_lock);
|
||||
|
||||
for(i=0; i< NUM_STA; i++)
|
||||
for (i=0; i< NUM_STA; i++)
|
||||
{
|
||||
phead = &(pstapriv->sta_hash[i]);
|
||||
plist = get_next(phead);
|
||||
|
|
|
@ -196,7 +196,7 @@ void rtw_report_sec_ie(struct adapter *adapter,u8 authmode,u8 *sec_ie)
|
|||
len = sec_ie[1]+2;
|
||||
len = (len < IW_CUSTOM_MAX) ? len:IW_CUSTOM_MAX;
|
||||
|
||||
for(i=0;i<len;i++){
|
||||
for (i=0;i<len;i++){
|
||||
p+=sprintf(p,"%02x",sec_ie[i]);
|
||||
}
|
||||
|
||||
|
|
|
@ -612,7 +612,7 @@ void rtw_unregister_netdevs(struct dvobj_priv *dvobj)
|
|||
int i;
|
||||
struct adapter *padapter = NULL;
|
||||
|
||||
for(i=0;i<dvobj->iface_nums;i++)
|
||||
for (i=0;i<dvobj->iface_nums;i++)
|
||||
{
|
||||
struct net_device *pnetdev = NULL;
|
||||
|
||||
|
@ -1052,7 +1052,7 @@ int rtw_drv_register_netdev(struct adapter *if1)
|
|||
|
||||
if (dvobj->iface_nums < IFACE_ID_MAX)
|
||||
{
|
||||
for(i=0; i<dvobj->iface_nums; i++)
|
||||
for (i=0; i<dvobj->iface_nums; i++)
|
||||
{
|
||||
struct adapter *padapter = dvobj->padapters[i];
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ u32 rtw_atoi(u8* s)
|
|||
|
||||
int num=0,flag=0;
|
||||
int i;
|
||||
for(i=0;i<=strlen(s);i++) {
|
||||
for (i=0;i<=strlen(s);i++) {
|
||||
if (s[i] >= '0' && s[i] <= '9')
|
||||
num = num * 10 + s[i] -'0';
|
||||
else if (s[0] == '-' && i==0)
|
||||
|
@ -205,7 +205,7 @@ int _rtw_mstat_dump(char *buf, int len)
|
|||
int vir_alloc, vir_peak, vir_alloc_err, phy_alloc, phy_peak, phy_alloc_err;
|
||||
int tx_alloc, tx_peak, tx_alloc_err, rx_alloc, rx_peak, rx_alloc_err;
|
||||
|
||||
for(i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
|
||||
for (i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
|
||||
value_t[0][i] = ATOMIC_READ(&(rtw_mem_type_stat[i].alloc));
|
||||
value_t[1][i] = ATOMIC_READ(&(rtw_mem_type_stat[i].peak));
|
||||
value_t[2][i] = ATOMIC_READ(&(rtw_mem_type_stat[i].alloc_cnt));
|
||||
|
@ -214,7 +214,7 @@ int _rtw_mstat_dump(char *buf, int len)
|
|||
cnt += snprintf(buf+cnt, len-cnt, "===================== MSTAT =====================\n");
|
||||
cnt += snprintf(buf+cnt, len-cnt, "%4s %10s %10s %10s %10s\n", "TAG", "alloc", "peak", "aloc_cnt", "err_cnt");
|
||||
cnt += snprintf(buf+cnt, len-cnt, "-------------------------------------------------\n");
|
||||
for(i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
|
||||
for (i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
|
||||
cnt += snprintf(buf+cnt, len-cnt, "%4s %10d %10d %10d %10d\n", MSTAT_TYPE_str[i], value_t[0][i], value_t[1][i], value_t[2][i], value_t[3][i]);
|
||||
}
|
||||
return cnt;
|
||||
|
@ -236,13 +236,13 @@ void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 s
|
|||
|
||||
/* initialization */
|
||||
if (!update_time) {
|
||||
for(i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
|
||||
for (i=0;i<mstat_tf_idx(MSTAT_TYPE_MAX);i++) {
|
||||
ATOMIC_SET(&(rtw_mem_type_stat[i].alloc), 0);
|
||||
ATOMIC_SET(&(rtw_mem_type_stat[i].peak), 0);
|
||||
ATOMIC_SET(&(rtw_mem_type_stat[i].alloc_cnt), 0);
|
||||
ATOMIC_SET(&(rtw_mem_type_stat[i].alloc_err_cnt), 0);
|
||||
}
|
||||
for(i=0;i<mstat_ff_idx(MSTAT_FUNC_MAX);i++) {
|
||||
for (i=0;i<mstat_ff_idx(MSTAT_FUNC_MAX);i++) {
|
||||
ATOMIC_SET(&(rtw_mem_func_stat[i].alloc), 0);
|
||||
ATOMIC_SET(&(rtw_mem_func_stat[i].peak), 0);
|
||||
ATOMIC_SET(&(rtw_mem_func_stat[i].alloc_cnt), 0);
|
||||
|
@ -542,7 +542,7 @@ void* rtw_malloc2d(int h, int w, int size)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
for( j=0; j<h; j++ )
|
||||
for ( j=0; j<h; j++ )
|
||||
a[j] = ((char *)(a+h)) + j*w*size;
|
||||
|
||||
return a;
|
||||
|
|
|
@ -56,7 +56,7 @@ void rtw_os_recv_resource_free(struct recv_priv *precvpriv)
|
|||
union recv_frame *precvframe;
|
||||
precvframe = (union recv_frame*) precvpriv->precv_frame_buf;
|
||||
|
||||
for(i=0; i < NR_RECVFRAME; i++)
|
||||
for (i=0; i < NR_RECVFRAME; i++)
|
||||
{
|
||||
if (precvframe->u.hdr.pkt)
|
||||
{
|
||||
|
|
|
@ -226,7 +226,7 @@ exit_proc:
|
|||
int rtw_android_cmdstr_to_num(char *cmdstr)
|
||||
{
|
||||
int cmd_num;
|
||||
for(cmd_num=0 ; cmd_num<ANDROID_WIFI_CMD_MAX; cmd_num++)
|
||||
for (cmd_num=0 ; cmd_num<ANDROID_WIFI_CMD_MAX; cmd_num++)
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0))
|
||||
if (!strncasecmp(cmdstr, android_wifi_cmd_str[cmd_num],
|
||||
strlen(android_wifi_cmd_str[cmd_num])))
|
||||
|
@ -312,7 +312,7 @@ static int get_int_from_command(char *pcmd)
|
|||
{
|
||||
int i = 0;
|
||||
|
||||
for( i = 0; i < strlen( pcmd ); i++ )
|
||||
for ( i = 0; i < strlen( pcmd ); i++ )
|
||||
{
|
||||
if ( pcmd[ i ] == '=' )
|
||||
{
|
||||
|
|
|
@ -484,7 +484,7 @@ static void process_spec_devid(const struct usb_device_id *pdid)
|
|||
int i;
|
||||
int num = sizeof(specific_device_id_tbl)/sizeof(struct specific_device_id);
|
||||
|
||||
for(i=0; i<num; i++)
|
||||
for (i=0; i<num; i++)
|
||||
{
|
||||
vid = specific_device_id_tbl[i].idVendor;
|
||||
pid = specific_device_id_tbl[i].idProduct;
|
||||
|
|
|
@ -87,7 +87,7 @@ int rtw_os_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *pxmitb
|
|||
pxmitbuf->pbuf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pxmitbuf->pallocated_buf), XMITBUF_ALIGN_SZ);
|
||||
pxmitbuf->dma_transfer_addr = 0;
|
||||
|
||||
for(i=0; i<8; i++) {
|
||||
for (i=0; i<8; i++) {
|
||||
pxmitbuf->pxmit_urb[i] = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (pxmitbuf->pxmit_urb[i] == NULL) {
|
||||
DBG_871X("pxmitbuf->pxmit_urb[i]==NULL");
|
||||
|
@ -105,7 +105,7 @@ void rtw_os_xmit_resource_free(struct adapter *padapter, struct xmit_buf *pxmitb
|
|||
struct usb_device *pusbd = pdvobjpriv->pusbdev;
|
||||
|
||||
|
||||
for(i=0; i<8; i++)
|
||||
for (i=0; i<8; i++)
|
||||
{
|
||||
if (pxmitbuf->pxmit_urb[i])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue