diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-04-18 12:34:06 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-04-18 12:34:06 -0400 |
commit | 119ea186cad7643ea82b7290374ebb8e780c35b6 (patch) | |
tree | 9b887638d86d7315bad836c4e985f978e608317d /drivers/net/wireless/iwlwifi | |
parent | 5cab35e7f4feda1a0bfd4f48b7686391004be9de (diff) |
iwlagn: remove un-necessary ieee80211_ops
After driver split, no need to use ieee80211_ops, remove it
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 22 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 24 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 2 |
7 files changed, 22 insertions, 37 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index a01871801e53..baf80111efaf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -220,7 +220,6 @@ static const struct iwl_ops iwl1000_ops = { | |||
220 | .lib = &iwl1000_lib, | 220 | .lib = &iwl1000_lib, |
221 | .hcmd = &iwlagn_hcmd, | 221 | .hcmd = &iwlagn_hcmd, |
222 | .utils = &iwlagn_hcmd_utils, | 222 | .utils = &iwlagn_hcmd_utils, |
223 | .ieee80211_ops = &iwlagn_hw_ops, | ||
224 | }; | 223 | }; |
225 | 224 | ||
226 | static struct iwl_base_params iwl1000_base_params = { | 225 | static struct iwl_base_params iwl1000_base_params = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 0bd9b146bb94..e76e02c28928 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -304,28 +304,24 @@ static const struct iwl_ops iwl2000_ops = { | |||
304 | .lib = &iwl2000_lib, | 304 | .lib = &iwl2000_lib, |
305 | .hcmd = &iwlagn_hcmd, | 305 | .hcmd = &iwlagn_hcmd, |
306 | .utils = &iwlagn_hcmd_utils, | 306 | .utils = &iwlagn_hcmd_utils, |
307 | .ieee80211_ops = &iwlagn_hw_ops, | ||
308 | }; | 307 | }; |
309 | 308 | ||
310 | static const struct iwl_ops iwl2030_ops = { | 309 | static const struct iwl_ops iwl2030_ops = { |
311 | .lib = &iwl2000_lib, | 310 | .lib = &iwl2000_lib, |
312 | .hcmd = &iwlagn_bt_hcmd, | 311 | .hcmd = &iwlagn_bt_hcmd, |
313 | .utils = &iwlagn_hcmd_utils, | 312 | .utils = &iwlagn_hcmd_utils, |
314 | .ieee80211_ops = &iwlagn_hw_ops, | ||
315 | }; | 313 | }; |
316 | 314 | ||
317 | static const struct iwl_ops iwl200_ops = { | 315 | static const struct iwl_ops iwl200_ops = { |
318 | .lib = &iwl2000_lib, | 316 | .lib = &iwl2000_lib, |
319 | .hcmd = &iwlagn_hcmd, | 317 | .hcmd = &iwlagn_hcmd, |
320 | .utils = &iwlagn_hcmd_utils, | 318 | .utils = &iwlagn_hcmd_utils, |
321 | .ieee80211_ops = &iwlagn_hw_ops, | ||
322 | }; | 319 | }; |
323 | 320 | ||
324 | static const struct iwl_ops iwl230_ops = { | 321 | static const struct iwl_ops iwl230_ops = { |
325 | .lib = &iwl2000_lib, | 322 | .lib = &iwl2000_lib, |
326 | .hcmd = &iwlagn_bt_hcmd, | 323 | .hcmd = &iwlagn_bt_hcmd, |
327 | .utils = &iwlagn_hcmd_utils, | 324 | .utils = &iwlagn_hcmd_utils, |
328 | .ieee80211_ops = &iwlagn_hw_ops, | ||
329 | }; | 325 | }; |
330 | 326 | ||
331 | static struct iwl_base_params iwl2000_base_params = { | 327 | static struct iwl_base_params iwl2000_base_params = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index ced89f662bd1..655afc19f68f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -436,14 +436,12 @@ static const struct iwl_ops iwl5000_ops = { | |||
436 | .lib = &iwl5000_lib, | 436 | .lib = &iwl5000_lib, |
437 | .hcmd = &iwlagn_hcmd, | 437 | .hcmd = &iwlagn_hcmd, |
438 | .utils = &iwlagn_hcmd_utils, | 438 | .utils = &iwlagn_hcmd_utils, |
439 | .ieee80211_ops = &iwlagn_hw_ops, | ||
440 | }; | 439 | }; |
441 | 440 | ||
442 | static const struct iwl_ops iwl5150_ops = { | 441 | static const struct iwl_ops iwl5150_ops = { |
443 | .lib = &iwl5150_lib, | 442 | .lib = &iwl5150_lib, |
444 | .hcmd = &iwlagn_hcmd, | 443 | .hcmd = &iwlagn_hcmd, |
445 | .utils = &iwlagn_hcmd_utils, | 444 | .utils = &iwlagn_hcmd_utils, |
446 | .ieee80211_ops = &iwlagn_hw_ops, | ||
447 | }; | 445 | }; |
448 | 446 | ||
449 | static struct iwl_base_params iwl5000_base_params = { | 447 | static struct iwl_base_params iwl5000_base_params = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index ed6a0ed0f501..905eb57f7cab 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -386,7 +386,6 @@ static const struct iwl_ops iwl6000_ops = { | |||
386 | .lib = &iwl6000_lib, | 386 | .lib = &iwl6000_lib, |
387 | .hcmd = &iwlagn_hcmd, | 387 | .hcmd = &iwlagn_hcmd, |
388 | .utils = &iwlagn_hcmd_utils, | 388 | .utils = &iwlagn_hcmd_utils, |
389 | .ieee80211_ops = &iwlagn_hw_ops, | ||
390 | }; | 389 | }; |
391 | 390 | ||
392 | static const struct iwl_ops iwl6050_ops = { | 391 | static const struct iwl_ops iwl6050_ops = { |
@@ -394,7 +393,6 @@ static const struct iwl_ops iwl6050_ops = { | |||
394 | .hcmd = &iwlagn_hcmd, | 393 | .hcmd = &iwlagn_hcmd, |
395 | .utils = &iwlagn_hcmd_utils, | 394 | .utils = &iwlagn_hcmd_utils, |
396 | .nic = &iwl6050_nic_ops, | 395 | .nic = &iwl6050_nic_ops, |
397 | .ieee80211_ops = &iwlagn_hw_ops, | ||
398 | }; | 396 | }; |
399 | 397 | ||
400 | static const struct iwl_ops iwl6150_ops = { | 398 | static const struct iwl_ops iwl6150_ops = { |
@@ -402,14 +400,12 @@ static const struct iwl_ops iwl6150_ops = { | |||
402 | .hcmd = &iwlagn_hcmd, | 400 | .hcmd = &iwlagn_hcmd, |
403 | .utils = &iwlagn_hcmd_utils, | 401 | .utils = &iwlagn_hcmd_utils, |
404 | .nic = &iwl6150_nic_ops, | 402 | .nic = &iwl6150_nic_ops, |
405 | .ieee80211_ops = &iwlagn_hw_ops, | ||
406 | }; | 403 | }; |
407 | 404 | ||
408 | static const struct iwl_ops iwl6030_ops = { | 405 | static const struct iwl_ops iwl6030_ops = { |
409 | .lib = &iwl6030_lib, | 406 | .lib = &iwl6030_lib, |
410 | .hcmd = &iwlagn_bt_hcmd, | 407 | .hcmd = &iwlagn_bt_hcmd, |
411 | .utils = &iwlagn_hcmd_utils, | 408 | .utils = &iwlagn_hcmd_utils, |
412 | .ieee80211_ops = &iwlagn_hw_ops, | ||
413 | }; | 409 | }; |
414 | 410 | ||
415 | static struct iwl_base_params iwl6000_base_params = { | 411 | static struct iwl_base_params iwl6000_base_params = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 3cfd7ebb3448..cdeb09eee739 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3728,6 +3728,28 @@ static const u8 iwlagn_pan_ac_to_queue[] = { | |||
3728 | 7, 6, 5, 4, | 3728 | 7, 6, 5, 4, |
3729 | }; | 3729 | }; |
3730 | 3730 | ||
3731 | /* This function both allocates and initializes hw and priv. */ | ||
3732 | static struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg) | ||
3733 | { | ||
3734 | struct iwl_priv *priv; | ||
3735 | /* mac80211 allocates memory for this device instance, including | ||
3736 | * space for this driver's private structure */ | ||
3737 | struct ieee80211_hw *hw; | ||
3738 | |||
3739 | hw = ieee80211_alloc_hw(sizeof(struct iwl_priv), &iwlagn_hw_ops); | ||
3740 | if (hw == NULL) { | ||
3741 | pr_err("%s: Can not allocate network device\n", | ||
3742 | cfg->name); | ||
3743 | goto out; | ||
3744 | } | ||
3745 | |||
3746 | priv = hw->priv; | ||
3747 | priv->hw = hw; | ||
3748 | |||
3749 | out: | ||
3750 | return hw; | ||
3751 | } | ||
3752 | |||
3731 | static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 3753 | static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
3732 | { | 3754 | { |
3733 | int err = 0, i; | 3755 | int err = 0, i; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 0e98a8703e55..885167f8168d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -67,30 +67,6 @@ u32 iwl_debug_level; | |||
67 | 67 | ||
68 | const u8 iwl_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; | 68 | const u8 iwl_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; |
69 | 69 | ||
70 | |||
71 | /* This function both allocates and initializes hw and priv. */ | ||
72 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg) | ||
73 | { | ||
74 | struct iwl_priv *priv; | ||
75 | /* mac80211 allocates memory for this device instance, including | ||
76 | * space for this driver's private structure */ | ||
77 | struct ieee80211_hw *hw; | ||
78 | |||
79 | hw = ieee80211_alloc_hw(sizeof(struct iwl_priv), | ||
80 | cfg->ops->ieee80211_ops); | ||
81 | if (hw == NULL) { | ||
82 | pr_err("%s: Can not allocate network device\n", | ||
83 | cfg->name); | ||
84 | goto out; | ||
85 | } | ||
86 | |||
87 | priv = hw->priv; | ||
88 | priv->hw = hw; | ||
89 | |||
90 | out: | ||
91 | return hw; | ||
92 | } | ||
93 | |||
94 | #define MAX_BIT_RATE_40_MHZ 150 /* Mbps */ | 70 | #define MAX_BIT_RATE_40_MHZ 150 /* Mbps */ |
95 | #define MAX_BIT_RATE_20_MHZ 72 /* Mbps */ | 71 | #define MAX_BIT_RATE_20_MHZ 72 /* Mbps */ |
96 | static void iwlcore_init_ht_hw_capab(const struct iwl_priv *priv, | 72 | static void iwlcore_init_ht_hw_capab(const struct iwl_priv *priv, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index abee5074d30e..0049790eab7f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -210,7 +210,6 @@ struct iwl_ops { | |||
210 | const struct iwl_hcmd_utils_ops *utils; | 210 | const struct iwl_hcmd_utils_ops *utils; |
211 | const struct iwl_nic_ops *nic; | 211 | const struct iwl_nic_ops *nic; |
212 | const struct iwl_legacy_ops *legacy; | 212 | const struct iwl_legacy_ops *legacy; |
213 | const struct ieee80211_ops *ieee80211_ops; | ||
214 | }; | 213 | }; |
215 | 214 | ||
216 | struct iwl_mod_params { | 215 | struct iwl_mod_params { |
@@ -364,7 +363,6 @@ struct iwl_cfg { | |||
364 | * L i b * | 363 | * L i b * |
365 | ***************************/ | 364 | ***************************/ |
366 | 365 | ||
367 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg); | ||
368 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | 366 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, |
369 | const struct ieee80211_tx_queue_params *params); | 367 | const struct ieee80211_tx_queue_params *params); |
370 | int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw); | 368 | int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw); |