[WCNCR00169301] regd: add disconnection when connected channel is disabled

[Description]
Expected behavior:
When DUT is configured with a channel 12 or 13 AP during OOBE in the US
(where channel 12/13 are not legal), DUT is expected to disconnect
from the ch12/13 AP after the country code is determined to be US.

Issue repro steps:
1. Factory reset device
2. During Wi-Fi configuration, connect to the ch13 AP.
   (NOTE: DUT should connect to the AP because country code is 00 in OOBE)
3. After DUT OOBE is completed, country is changed to US.
4. DUT remains connected to the Ch13 AP, it is unexpected.

Solution:
Disconnect AP if the disabled channel is connected channel.

Test:
1. In JP channel 13, DUT disconnects from AP when change country to US.
2. DUT reconnects to AP when change country to JP.

Change-Id: Iaa4a81156c74612256c9e3191fa32ba657c1c9a5
CR-Id: WCNCR00169301
Feature: regd
Signed-off-by: ZD Hu <zd.hu@mediatek.com>
Reviewed-on: http://gerrit.mediatek.inc:8080/1240487
CheckPatch: Check Patch <srv_checkpatch@mediatek.com>
Reviewed-by: Sarick Jiang <sarick.jiang@mediatek.com>
Reviewed-by: George Kuo <george.kuo@mediatek.com>
Build: srv_neptune_adm <srv_neptune_adm@mediatek.com>
1 file changed