net: wireless: bcmdhd: Re-set country code on disconnection
authorSrinivas Ramachandran <srinivasra@nvidia.com>
Sat, 15 Apr 2017 01:19:58 +0000 (18:19 -0700)
committerManish Tuteja <mtuteja@nvidia.com>
Thu, 20 Apr 2017 01:42:03 +0000 (18:42 -0700)
commitd5ac5b2baa1cec30da6f523f4c4d243b6ecb20f7
treea1db98a6e913f27eb2c3f84197e09523c7b10753
parent9fb63dc05e1b60a20b2da313a40d9cc223b950c1
net: wireless: bcmdhd: Re-set country code on disconnection

Issue: Sometime on disconnection from AP on
DFS channel, firmware channel flags are still in stale active
state. This leads to active scanning on DFS channel without AP
connection, which is not permitted.

Fix: Re-set the current firmware country code to update the channel
flags on disconnection. This will restore the channel flags.

Bug 1883430

Change-Id: I773ce9bcdd2c1943668380f106601be1acb4259c
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/1465084
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Mahesh Patil <maheshp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c
drivers/net/wireless/bcmdhd/wldev_common.c