FYI, we noticed the following commit (built with gcc-7): commit: 7ed389fe1b71968d854834410f21d4024cca9f0d ("cfg80211: Fix regulatory data is reset in case all phys have disconnected") https://github.com/0day-ci/linux/commits/Orr-Mazor/cfg80211-Fix-regulatory-data-is-reset-in-case-all-phys-have-disconnected/20200117-035215 in testcase: hwsim with following parameters: group: hwsim-00 on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag Reported-by: kernel test robot 2020-02-17 13:27:30 ./run-tests.py ap_acs_vht160_dfs --long DEV: wlan0: 02:00:00:00:00:00 DEV: wlan1: 02:00:00:00:01:00 DEV: wlan2: 02:00:00:00:02:00 APDEV: wlan3 APDEV: wlan4 START ap_acs_vht160_dfs 1/1 Test: Automatic channel selection 160 MHz, HT scan, and DFS [long] Starting AP wlan3 Removing BSS wlan3 Starting AP wlan3 Connect STA wlan0 to AP wlan0: Country code not reset back to 00: is 98 Country code remains set - expect following test cases to fail FAIL ap_acs_vht160_dfs 69.161831 2020-02-17 13:28:39.876805 passed 0 test case(s) skipped 0 test case(s) failed tests: ap_acs_vht160_dfs To reproduce: # build kernel cd linux cp config-5.5.0-rc4-00726-g7ed389fe1b719 .config make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Rong Chen