mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
Revert commit ef9209b642 "staging: rtl8723bs: Fix indenting errors and an off-by-one mistake in core/rtw_mlme_ext.c"
commit87e4a5405fupstream. pstapriv->max_num_sta is always <= NUM_STA, since max_num_sta is either set in _rtw_init_sta_priv() or rtw_set_beacon(). Fixes:ef9209b642("staging: rtl8723bs: Fix indenting errors and an off-by-one mistake in core/rtw_mlme_ext.c") Signed-off-by: Young Xiao <YangX92@hotmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9138ce0a80
commit
3592928146
|
|
@ -1566,7 +1566,7 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
if (pstat->aid > 0) {
|
||||
DBG_871X(" old AID %d\n", pstat->aid);
|
||||
} else {
|
||||
for (pstat->aid = 1; pstat->aid < NUM_STA; pstat->aid++)
|
||||
for (pstat->aid = 1; pstat->aid <= NUM_STA; pstat->aid++)
|
||||
if (pstapriv->sta_aid[pstat->aid - 1] == NULL)
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user