aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Spinadel <david.spinadel@intel.com>2012-05-11 04:53:17 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-05-16 13:08:19 -0400
commit65781af6b5e0dd07bf33dfb12be876129e74efa5 (patch)
tree002b6fa1bdb6432e6bbf91e97c85ccc13eedda55
parent4f9bfbb1881017911296724aec0999b041a3d7d6 (diff)
iwlwifi: invert the order of ssid list in scan cmd
The firmware inverts the order of ssid list of scan command, we should invert the order before sending the command, in order to get probe requests sent in wanted order. Signed-off-by: David Spinadel <david.spinadel@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-scan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
index 0505e4edf243..031d8e21f82f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-scan.c
+++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
@@ -767,7 +767,11 @@ static int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
767 ssid_len = priv->scan_request->ssids[0].ssid_len; 767 ssid_len = priv->scan_request->ssids[0].ssid_len;
768 ssid = priv->scan_request->ssids[0].ssid; 768 ssid = priv->scan_request->ssids[0].ssid;
769 769
770 for (i = 1; i < priv->scan_request->n_ssids; i++) { 770 /*
771 * Invert the order of ssids, the firmware will invert
772 * it back.
773 */
774 for (i = priv->scan_request->n_ssids - 1; i >= 1; i--) {
771 scan->direct_scan[p].id = WLAN_EID_SSID; 775 scan->direct_scan[p].id = WLAN_EID_SSID;
772 scan->direct_scan[p].len = 776 scan->direct_scan[p].len =
773 priv->scan_request->ssids[i].ssid_len; 777 priv->scan_request->ssids[i].ssid_len;