Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwif...
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Jun 2014 19:29:03 +0000 (15:29 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Jun 2014 19:29:03 +0000 (15:29 -0400)
1  2 
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/scan.c

@@@ -1537,13 -1549,13 +1549,14 @@@ static void iwl_mvm_bss_info_changed(st
  
  static int iwl_mvm_mac_hw_scan(struct ieee80211_hw *hw,
                               struct ieee80211_vif *vif,
 -                             struct cfg80211_scan_request *req)
 +                             struct ieee80211_scan_request *hw_req)
  {
        struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
 +      struct cfg80211_scan_request *req = &hw_req->req;
        int ret;
  
-       if (req->n_channels == 0 || req->n_channels > MAX_NUM_SCAN_CHANNELS)
+       if (req->n_channels == 0 ||
+           req->n_channels > mvm->fw->ucode_capa.n_scan_channels)
                return -EINVAL;
  
        mutex_lock(&mvm->mutex);