diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-12-01 12:13:05 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:35:46 -0500 |
commit | 0f70f398460adb2d8aabb00e7e65f58247f219a3 (patch) | |
tree | f459109a3aca6d23b33c9fc8a52f29f16fd36d9a /net/wireless | |
parent | c58f9f635afe688c5c5709f441af57c12c7a4856 (diff) |
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 <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/reg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 9e5a9f975478..4f877535e666 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -989,6 +989,9 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
989 | u32 checksum = 0; | 989 | u32 checksum = 0; |
990 | enum environment_cap env = ENVIRON_ANY; | 990 | enum environment_cap env = ENVIRON_ANY; |
991 | 991 | ||
992 | if (!last_request) | ||
993 | return; | ||
994 | |||
992 | mutex_lock(&cfg80211_drv_mutex); | 995 | mutex_lock(&cfg80211_drv_mutex); |
993 | 996 | ||
994 | /* IE len must be evenly divisible by 2 */ | 997 | /* IE len must be evenly divisible by 2 */ |