Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville...
[linux.git] / drivers / net / wireless / ath / regd.c
index 85fa9cc73502c8f30b70a8d15da73dd28071fdcf..65ecb5bab25a2a0a0c1e64d5122397238ab1e0ca 100644 (file)
@@ -254,6 +254,8 @@ ath_reg_apply_active_scan_flags(struct wiphy *wiphy,
        int r;
 
        sband = wiphy->bands[IEEE80211_BAND_2GHZ];
+       if (!sband)
+               return;
 
        /*
         * If no country IE has been received always enable active scan