p2p_autogo_pref_chan_not_in_regulatory fails with this message.
---------------
wlan0: Country code not reset back to 00: is SE
wlan0: Country code cleared back to 00
---------------
This patch fixes the issue.
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
from wpasupplicant import WpaSupplicant
from hwsim import HWSimRadio
from p2p_utils import *
+from utils import clear_regdom_dev
def set_country(country, dev=None):
subprocess.call(['iw', 'reg', 'set', country])
dev[0].remove_group(res['ifname'])
finally:
dev[0].global_request("SET p2p_pref_chan ")
- set_country("00")
+ clear_regdom_dev(dev)
def run_autogo(dev, param):
if "OK" not in dev.global_request("P2P_GROUP_ADD " + param):