]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cfg80211: regulatory: restore proper user alpha2
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Wed, 2 Sep 2015 17:00:31 +0000 (19:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Sep 2015 12:29:25 +0000 (14:29 +0200)
commit549cc1c560128d583698ba9a73af283fe87dbab8
tree7abbe9e36934e5060a4de7abf91f17cd4bb105e6
parent4c0778933a3d7c35a94e8c35847acd9bb59a257d
cfg80211: regulatory: restore proper user alpha2

restore_regulatory_settings() should restore alpha2
as computed in restore_alpha2(), not raw user_alpha2 to
behave as described in the comment just above that code.

This fixes endless loop of calling CRDA for "00" and "97"
countries after resume from suspend on my laptop.

Looks like others had the same problem, too:
http://ath9k-devel.ath9k.narkive.com/knY5W6St/ath9k-and-crda-messages-in-logs
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/899335
https://forum.porteus.org/viewtopic.php?t=4975&p=36436
https://forums.opensuse.org/showthread.php/483356-Authentication-Regulatory-Domain-issues-ath5k-12-2

Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c