]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cfg80211: don't WARN about two consecutive Country IE hint
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 2 Dec 2014 07:53:25 +0000 (09:53 +0200)
committerLuis Henriques <luis.henriques@canonical.com>
Thu, 15 Jan 2015 10:44:04 +0000 (10:44 +0000)
commit 70dcec5a488a7b81779190ac8089475fe4b8b962 upstream.

This can happen and there is no point in added more
detection code lower in the stack. Catching these in one
single point (cfg80211) is enough. Stop WARNING about this
case.

This fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=89001

Fixes: 2f1c6c572d7b ("cfg80211: process non country IE conflicting first")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
net/wireless/reg.c

index ff7ffeb7947aca6ed3b4b6936585471a18397023..20ccc79d53a2f3f7385bf8b4287ed12324bcf4c0 100644 (file)
@@ -1802,11 +1802,8 @@ __reg_process_hint_country_ie(struct wiphy *wiphy,
                        return REG_REQ_IGNORE;
                return REG_REQ_ALREADY_SET;
        }
-       /*
-        * Two consecutive Country IE hints on the same wiphy.
-        * This should be picked up early by the driver/stack
-        */
-       if (WARN_ON(regdom_changes(country_ie_request->alpha2)))
+
+       if (regdom_changes(country_ie_request->alpha2))
                return REG_REQ_OK;
        return REG_REQ_ALREADY_SET;
 }