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)
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

Simple merge