aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-08-12 20:44:53 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-12 20:44:53 -0400
commitaa11d958d1a6572eda08214d7c6a735804fe48a5 (patch)
treed025b05270ad1e010660d17eeadc6ac3c1abbd7d /drivers/net/wireless/iwlwifi
parent07f6642ee9418e962e54cbc07471cfe2e559c568 (diff)
parent9799218ae36910af50f002a5db1802d576fffb43 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: arch/microblaze/include/asm/socket.h
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c12
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c3
3 files changed, 12 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 6797076bd45f..2ffbd27d01d2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -1596,6 +1596,9 @@ int iwl_setup_mac(struct iwl_priv *priv)
1596 1596
1597 hw->wiphy->custom_regulatory = true; 1597 hw->wiphy->custom_regulatory = true;
1598 1598
1599 /* Firmware does not support this */
1600 hw->wiphy->disable_beacon_hints = true;
1601
1599 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX; 1602 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX;
1600 /* we create the 802.11 header and a zero-length SSID element */ 1603 /* we create the 802.11 header and a zero-length SSID element */
1601 hw->wiphy->max_scan_ie_len = IWL_MAX_PROBE_REQUEST - 24 - 2; 1604 hw->wiphy->max_scan_ie_len = IWL_MAX_PROBE_REQUEST - 24 - 2;
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 7707a2655994..6748a3fb9669 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -310,18 +310,18 @@ static ssize_t iwl_dbgfs_nvm_read(struct file *file,
310 return -ENODATA; 310 return -ENODATA;
311 } 311 }
312 312
313 ptr = priv->eeprom;
314 if (!ptr) {
315 IWL_ERR(priv, "Invalid EEPROM/OTP memory\n");
316 return -ENOMEM;
317 }
318
313 /* 4 characters for byte 0xYY */ 319 /* 4 characters for byte 0xYY */
314 buf = kzalloc(buf_size, GFP_KERNEL); 320 buf = kzalloc(buf_size, GFP_KERNEL);
315 if (!buf) { 321 if (!buf) {
316 IWL_ERR(priv, "Can not allocate Buffer\n"); 322 IWL_ERR(priv, "Can not allocate Buffer\n");
317 return -ENOMEM; 323 return -ENOMEM;
318 } 324 }
319
320 ptr = priv->eeprom;
321 if (!ptr) {
322 IWL_ERR(priv, "Invalid EEPROM/OTP memory\n");
323 return -ENOMEM;
324 }
325 pos += scnprintf(buf + pos, buf_size - pos, "NVM Type: %s\n", 325 pos += scnprintf(buf + pos, buf_size - pos, "NVM Type: %s\n",
326 (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP) 326 (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP)
327 ? "OTP" : "EEPROM"); 327 ? "OTP" : "EEPROM");
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 5ded8983b915..ea051b739ba2 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -3905,6 +3905,9 @@ static int iwl3945_setup_mac(struct iwl_priv *priv)
3905 3905
3906 hw->wiphy->custom_regulatory = true; 3906 hw->wiphy->custom_regulatory = true;
3907 3907
3908 /* Firmware does not support this */
3909 hw->wiphy->disable_beacon_hints = true;
3910
3908 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945; 3911 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX_3945;
3909 /* we create the 802.11 header and a zero-length SSID element */ 3912 /* we create the 802.11 header and a zero-length SSID element */
3910 hw->wiphy->max_scan_ie_len = IWL_MAX_PROBE_REQUEST - 24 - 2; 3913 hw->wiphy->max_scan_ie_len = IWL_MAX_PROBE_REQUEST - 24 - 2;