net: wireless: bcmdhd: update disconnect event to upper layer
authorOm Prakash Singh <omp@nvidia.com>
Wed, 19 Aug 2015 06:43:43 +0000 (11:43 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Tue, 25 Aug 2015 06:04:35 +0000 (23:04 -0700)
commit22a648256987353639db13d85156dc173ae69a3c
treef20ed33522653a18ee9ffaa139784525018f0781
parent5b4dcf2f892baa30180d6b2e917015a8ed7413ba
net: wireless: bcmdhd: update disconnect event to upper layer

When driver receives back to back connect/disconnect events,
sometimes driver state gets stuck in DISCONNECTING state.
On next connect/disconnect cycle, disconnect is not propagated
to upper layers since driver is in DISCONNECTING state.
Originally DISCONNECTING state check was added to send DISASSOC
only if driver state is not DISCONNECTING but notification to
upper layers is also added in the condition. Moving the notification
out of the condition to resolve this issue.

Bug 200120612

Change-Id: Ibd3cc207e1f7558b9d2da7a524b4e2729e85ae8b
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/787926
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c