diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-29 14:47:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-29 14:47:07 -0400 |
commit | ae3568adf42d5d3bb3cfa505b94351c5d1ce4924 (patch) | |
tree | 112865a6e6b1e4ddf70362f3efb295c495ec85b9 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 7f3e01fee41a322747db2d7574516d9fbd3785c0 (diff) | |
parent | b7753c8cd51dce67a0b152efb456a21ff1cc241b (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 8eb347106902..d24eb47d3705 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -27,6 +27,8 @@ | |||
27 | * | 27 | * |
28 | *****************************************************************************/ | 28 | *****************************************************************************/ |
29 | 29 | ||
30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
31 | |||
30 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
31 | #include <linux/module.h> | 33 | #include <linux/module.h> |
32 | #include <linux/init.h> | 34 | #include <linux/init.h> |
@@ -311,9 +313,7 @@ unsigned int iwl3945_fill_beacon_frame(struct iwl_priv *priv, | |||
311 | int left) | 313 | int left) |
312 | { | 314 | { |
313 | 315 | ||
314 | if (!iwl_is_associated(priv) || !priv->ibss_beacon || | 316 | if (!iwl_is_associated(priv) || !priv->ibss_beacon) |
315 | ((priv->iw_mode != NL80211_IFTYPE_ADHOC) && | ||
316 | (priv->iw_mode != NL80211_IFTYPE_AP))) | ||
317 | return 0; | 317 | return 0; |
318 | 318 | ||
319 | if (priv->ibss_beacon->len > left) | 319 | if (priv->ibss_beacon->len > left) |
@@ -2883,7 +2883,10 @@ void iwl3945_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
2883 | IWL_DEBUG_INFO(priv, "Scanning while associated...\n"); | 2883 | IWL_DEBUG_INFO(priv, "Scanning while associated...\n"); |
2884 | 2884 | ||
2885 | spin_lock_irqsave(&priv->lock, flags); | 2885 | spin_lock_irqsave(&priv->lock, flags); |
2886 | interval = vif ? vif->bss_conf.beacon_int : 0; | 2886 | if (priv->is_internal_short_scan) |
2887 | interval = 0; | ||
2888 | else | ||
2889 | interval = vif->bss_conf.beacon_int; | ||
2887 | spin_unlock_irqrestore(&priv->lock, flags); | 2890 | spin_unlock_irqrestore(&priv->lock, flags); |
2888 | 2891 | ||
2889 | scan->suspend_time = 0; | 2892 | scan->suspend_time = 0; |
@@ -3932,7 +3935,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
3932 | * space for this driver's private structure */ | 3935 | * space for this driver's private structure */ |
3933 | hw = iwl_alloc_all(cfg, &iwl3945_hw_ops); | 3936 | hw = iwl_alloc_all(cfg, &iwl3945_hw_ops); |
3934 | if (hw == NULL) { | 3937 | if (hw == NULL) { |
3935 | printk(KERN_ERR DRV_NAME "Can not allocate network device\n"); | 3938 | pr_err("Can not allocate network device\n"); |
3936 | err = -ENOMEM; | 3939 | err = -ENOMEM; |
3937 | goto out; | 3940 | goto out; |
3938 | } | 3941 | } |
@@ -4224,19 +4227,18 @@ static int __init iwl3945_init(void) | |||
4224 | { | 4227 | { |
4225 | 4228 | ||
4226 | int ret; | 4229 | int ret; |
4227 | printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n"); | 4230 | pr_info(DRV_DESCRIPTION ", " DRV_VERSION "\n"); |
4228 | printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n"); | 4231 | pr_info(DRV_COPYRIGHT "\n"); |
4229 | 4232 | ||
4230 | ret = iwl3945_rate_control_register(); | 4233 | ret = iwl3945_rate_control_register(); |
4231 | if (ret) { | 4234 | if (ret) { |
4232 | printk(KERN_ERR DRV_NAME | 4235 | pr_err("Unable to register rate control algorithm: %d\n", ret); |
4233 | "Unable to register rate control algorithm: %d\n", ret); | ||
4234 | return ret; | 4236 | return ret; |
4235 | } | 4237 | } |
4236 | 4238 | ||
4237 | ret = pci_register_driver(&iwl3945_driver); | 4239 | ret = pci_register_driver(&iwl3945_driver); |
4238 | if (ret) { | 4240 | if (ret) { |
4239 | printk(KERN_ERR DRV_NAME "Unable to initialize PCI module\n"); | 4241 | pr_err("Unable to initialize PCI module\n"); |
4240 | goto error_register; | 4242 | goto error_register; |
4241 | } | 4243 | } |
4242 | 4244 | ||