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>
This commit is contained in:
parent
6cff1f6ad4
commit
4aa0abed3a
1 changed files with 1 additions and 1 deletions
|
@ -981,7 +981,7 @@ BSSvSecondCallBack(
|
|||
pDevice->byERPFlag &= ~(WLAN_SET_ERP_USE_PROTECTION(1));
|
||||
}
|
||||
|
||||
{
|
||||
if (pDevice->eCommandState == WLAN_ASSOCIATE_WAIT) {
|
||||
pDevice->byReAssocCount++;
|
||||
/* 10 sec timeout */
|
||||
if ((pDevice->byReAssocCount > 10) && (!pDevice->bLinkPass)) {
|
||||
|
|
Loading…
Reference in a new issue