Skip to content

Commit c33e7a5

Browse files
Yoha-testgregkh
authored andcommitted
Revert commit ef9209b "staging: rtl8723bs: Fix indenting errors and an off-by-one mistake in core/rtw_mlme_ext.c"
commit 87e4a54 upstream. 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: ef9209b ("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>
1 parent 948ef68 commit c33e7a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
15741574
if (pstat->aid > 0) {
15751575
DBG_871X(" old AID %d\n", pstat->aid);
15761576
} else {
1577-
for (pstat->aid = 1; pstat->aid < NUM_STA; pstat->aid++)
1577+
for (pstat->aid = 1; pstat->aid <= NUM_STA; pstat->aid++)
15781578
if (pstapriv->sta_aid[pstat->aid - 1] == NULL)
15791579
break;
15801580

0 commit comments

Comments
 (0)