Merge tag 'clk-fixes-for-linus' of git://git.linaro.org/people/mike.turquette/linux
[pandora-kernel.git] / drivers / net / wireless / iwlwifi / mvm / scan.c
index cba88a3..c28de54 100644 (file)
@@ -732,7 +732,7 @@ int iwl_mvm_config_sched_scan(struct iwl_mvm *mvm,
        int band_2ghz = mvm->nvm_data->bands[IEEE80211_BAND_2GHZ].n_channels;
        int band_5ghz = mvm->nvm_data->bands[IEEE80211_BAND_5GHZ].n_channels;
        int head = 0;
-       int tail = band_2ghz + band_5ghz;
+       int tail = band_2ghz + band_5ghz - 1;
        u32 ssid_bitmap;
        int cmd_len;
        int ret;