cfg80211: avoid reg-hints in self-managed only systems
authorArik Nemtsov <arik@wizery.com>
Wed, 7 Jan 2015 14:47:20 +0000 (16:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jan 2015 08:43:44 +0000 (09:43 +0100)
commitef51fb1d1cd54ae9e0b0efd3b9bdb561fe5483a0
treedbe2e22cd66e684c7bd4128ef140de44ce275952
parent2c3e861c94a29a30c75f60f2561b4ee70b3fb3a4
cfg80211: avoid reg-hints in self-managed only systems

When a system contains only self-managed regulatory devices all hints
from the regulatory core are ignored. Stop hint processing early in this
case. These systems usually don't have CRDA deployed, which results in
endless (irrelevent) logs of the form:
cfg80211: Calling CRDA to update world regulatory domain

Make sure there's at least one self-managed device before discarding a
hint, in order to prevent initial hints from disappearing on CRDA
managed systems.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c