From: Johannes Berg Date: Mon, 1 Dec 2008 17:13:05 +0000 (+0100) Subject: cfg80211: "fix" 11d oops X-Git-Tag: v2.6.29-rc1~581^2~305^2~32 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0f70f398460adb2d8aabb00e7e65f58247f219a3;p=~shefty%2Frdma-dev.git cfg80211: "fix" 11d oops This "fixes" the 11d oops I was seeing. This needs some more work but I cannot work on it now. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 9e5a9f97547..4f877535e66 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -989,6 +989,9 @@ void regulatory_hint_11d(struct wiphy *wiphy, u32 checksum = 0; enum environment_cap env = ENVIRON_ANY; + if (!last_request) + return; + mutex_lock(&cfg80211_drv_mutex); /* IE len must be evenly divisible by 2 */