aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/wireless/reg.c3
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 */