|
@@ -156,7 +156,7 @@ static void rtw_mfree_all_stainfo(struct sta_priv *pstapriv)
|
|
plist = phead->next;
|
|
plist = phead->next;
|
|
|
|
|
|
while (phead != plist) {
|
|
while (phead != plist) {
|
|
- psta = container_of(plist, struct sta_info , list);
|
|
|
|
|
|
+ psta = container_of(plist, struct sta_info, list);
|
|
plist = plist->next;
|
|
plist = plist->next;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -257,7 +257,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
|
|
|
|
|
|
RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_info_,
|
|
RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_info_,
|
|
("alloc number_%d stainfo with hwaddr = %pM\n",
|
|
("alloc number_%d stainfo with hwaddr = %pM\n",
|
|
- pstapriv->asoc_sta_count , hwaddr));
|
|
|
|
|
|
+ pstapriv->asoc_sta_count, hwaddr));
|
|
|
|
|
|
init_addba_retry_timer(pstapriv->padapter, psta);
|
|
init_addba_retry_timer(pstapriv->padapter, psta);
|
|
|
|
|
|
@@ -291,7 +291,7 @@ exit:
|
|
}
|
|
}
|
|
|
|
|
|
/* using pstapriv->sta_hash_lock to protect */
|
|
/* using pstapriv->sta_hash_lock to protect */
|
|
-u32 rtw_free_stainfo(struct adapter *padapter , struct sta_info *psta)
|
|
|
|
|
|
+u32 rtw_free_stainfo(struct adapter *padapter, struct sta_info *psta)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
struct __queue *pfree_sta_queue;
|
|
struct __queue *pfree_sta_queue;
|
|
@@ -440,12 +440,12 @@ void rtw_free_all_stainfo(struct adapter *padapter)
|
|
plist = phead->next;
|
|
plist = phead->next;
|
|
|
|
|
|
while (phead != plist) {
|
|
while (phead != plist) {
|
|
- psta = container_of(plist, struct sta_info , hash_list);
|
|
|
|
|
|
+ psta = container_of(plist, struct sta_info, hash_list);
|
|
|
|
|
|
plist = plist->next;
|
|
plist = plist->next;
|
|
|
|
|
|
if (pbcmc_stainfo != psta)
|
|
if (pbcmc_stainfo != psta)
|
|
- rtw_free_stainfo(padapter , psta);
|
|
|
|
|
|
+ rtw_free_stainfo(padapter, psta);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
spin_unlock_bh(&pstapriv->sta_hash_lock);
|
|
spin_unlock_bh(&pstapriv->sta_hash_lock);
|