diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-10-23 12:15:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:24:50 -0500 |
commit | dc21b5453249e7e9b8878fab356fd60b731cf04d (patch) | |
tree | 9dc2a9ea8b11fed26bf82d3e97addba62e0f9aef /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 07caf9d6c9135ae25a760867f37aab90c1008380 (diff) |
iwlwifi: make mac80211 ops a device config
In the future, 4965 and modern AGN devices will
need to have different mac80211 callbacks since
they have different capabilities. Prepare for
that by making the mac80211 operations a device
config.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 0027bb8299a8..e3533a89ec9c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -4211,7 +4211,7 @@ static void iwl_uninit_drv(struct iwl_priv *priv) | |||
4211 | kfree(priv->scan_cmd); | 4211 | kfree(priv->scan_cmd); |
4212 | } | 4212 | } |
4213 | 4213 | ||
4214 | static struct ieee80211_ops iwl_hw_ops = { | 4214 | struct ieee80211_ops iwlagn_hw_ops = { |
4215 | .tx = iwl_mac_tx, | 4215 | .tx = iwl_mac_tx, |
4216 | .start = iwl_mac_start, | 4216 | .start = iwl_mac_start, |
4217 | .stop = iwl_mac_stop, | 4217 | .stop = iwl_mac_stop, |
@@ -4300,10 +4300,10 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
4300 | if (cfg->mod_params->disable_hw_scan) { | 4300 | if (cfg->mod_params->disable_hw_scan) { |
4301 | dev_printk(KERN_DEBUG, &(pdev->dev), | 4301 | dev_printk(KERN_DEBUG, &(pdev->dev), |
4302 | "sw scan support is deprecated\n"); | 4302 | "sw scan support is deprecated\n"); |
4303 | iwl_hw_ops.hw_scan = NULL; | 4303 | iwlagn_hw_ops.hw_scan = NULL; |
4304 | } | 4304 | } |
4305 | 4305 | ||
4306 | hw = iwl_alloc_all(cfg, &iwl_hw_ops); | 4306 | hw = iwl_alloc_all(cfg); |
4307 | if (!hw) { | 4307 | if (!hw) { |
4308 | err = -ENOMEM; | 4308 | err = -ENOMEM; |
4309 | goto out; | 4309 | goto out; |