cfg80211: move world roaming check for beacon hints
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Wed, 19 Dec 2012 18:53:04 +0000 (10:53 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:38 +0000 (13:01 +0100)
commit0f500a5f6cadac888d5d3fce326452372d1a8343
treeaa44c923191fff33e55a4320e2ae26811966fbc2
parent3195e489a878aaa3b735d4a1b7c5c79b3786efed
cfg80211: move world roaming check for beacon hints

We should not add new beacon hints even if the wiphy
is not world roaming. Without this we were always adding
a beacon hint if not world roaming for every non world
roaming wiphy interface.

Tested-by: Ben Greear <greearb@candelatech.com>
Reported-by: Ben Greear <greearb@candelatech.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
[fix locking]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c