wpas_ap_async_fail fails with this message.
---------------
wlan0: Country code not reset back to 00: is FI
wlan0: Country code cleared back to 00
---------------
This patch fixes the issue.
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
logger = logging.getLogger()
import hwsim_utils
-from utils import HwsimSkip, alloc_fail
+from utils import HwsimSkip, alloc_fail, clear_regdom_dev
from wpasupplicant import WpaSupplicant
from test_p2p_channel import set_country
dev[0].select_network(id)
dev[0].wait_disconnected()
finally:
- set_country("00")
- dev[0].set("country", "00")
+ clear_regdom_dev(dev)
if hapd:
hapd.request("DISABLE")
time.sleep(0.1)
+ clear_regdom_dev(dev, count)
+
+def clear_regdom_dev(dev, count=1):
for i in range(count):
dev[i].request("DISCONNECT")
for i in range(count):