Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wireless: Reset beacon_found while updating regulatory

During the association, the regulatory is updated by country IE
that reaps the previously found beacons. The impact is that
after a STA disconnects *or* when for any reason a regulatory
domain change happens the beacon hint flag is not cleared
therefore preventing future beacon hints to be learned.
This is important as a regulatory domain change or a restore
of regulatory settings would set back the passive scan and no-ibss
flags on the channel. This is the right place to do this given that
it covers any regulatory domain change.

Cc: stable@kernel.org
Reviewed-by: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Rajkumar Manoharan and committed by
John W. Linville
aa3d7eef 282cdb32

+1
+1
net/wireless/reg.c
··· 852 852 return; 853 853 } 854 854 855 + chan->beacon_found = false; 855 856 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); 856 857 chan->max_antenna_gain = min(chan->orig_mag, 857 858 (int) MBI_TO_DBI(power_rule->max_antenna_gain));