Skip to content

Commit 4aa0abe

Browse files
Malcolm Priestleygregkh
authored andcommitted
staging: vt6655: Fix disassociated messages every 10 seconds
byReAssocCount is incremented every second resulting in disassociated message being send every 10 seconds whether connection or not. byReAssocCount should only advance while eCommandState is in WLAN_ASSOCIATE_WAIT Change existing scope to if condition. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6cff1f6 commit 4aa0abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/vt6655/bssdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ BSSvSecondCallBack(
981981
pDevice->byERPFlag &= ~(WLAN_SET_ERP_USE_PROTECTION(1));
982982
}
983983

984-
{
984+
if (pDevice->eCommandState == WLAN_ASSOCIATE_WAIT) {
985985
pDevice->byReAssocCount++;
986986
/* 10 sec timeout */
987987
if ((pDevice->byReAssocCount > 10) && (!pDevice->bLinkPass)) {

0 commit comments

Comments
 (0)