diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-15 01:54:03 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:57 -0400 |
commit | 57bd1bea485bf6f37ff365dec2203ba6467b41a1 (patch) | |
tree | a49ff0a8dae798abe64028a31e825f37ac039a42 /drivers | |
parent | 1826dcc094466a39c82d4370ccfba694be0bc05b (diff) |
iwlwifi: move iwl_bcast_addr to iwlcore
This patch renames iwl4965_broadcast_addr to iwl_bcast_addr
and moves it to iwlcore.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 11 |
4 files changed, 12 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 1ec53a3848de..44215a7ab0ad 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -2029,7 +2029,7 @@ unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, | |||
2029 | 2029 | ||
2030 | frame_size = iwl4965_fill_beacon_frame(priv, | 2030 | frame_size = iwl4965_fill_beacon_frame(priv, |
2031 | tx_beacon_cmd->frame, | 2031 | tx_beacon_cmd->frame, |
2032 | iwl4965_broadcast_addr, | 2032 | iwl_bcast_addr, |
2033 | sizeof(frame->u) - sizeof(*tx_beacon_cmd)); | 2033 | sizeof(frame->u) - sizeof(*tx_beacon_cmd)); |
2034 | 2034 | ||
2035 | BUG_ON(frame_size > MAX_MPDU_SIZE); | 2035 | BUG_ON(frame_size > MAX_MPDU_SIZE); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 8e411de9bda6..79e46c5a35a4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -85,6 +85,11 @@ const struct iwl_rate_info iwl_rates[IWL_RATE_COUNT] = { | |||
85 | }; | 85 | }; |
86 | EXPORT_SYMBOL(iwl_rates); | 86 | EXPORT_SYMBOL(iwl_rates); |
87 | 87 | ||
88 | |||
89 | const u8 iwl_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; | ||
90 | EXPORT_SYMBOL(iwl_bcast_addr); | ||
91 | |||
92 | |||
88 | /* This function both allocates and initializes hw and priv. */ | 93 | /* This function both allocates and initializes hw and priv. */ |
89 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, | 94 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, |
90 | struct ieee80211_ops *hw_ops) | 95 | struct ieee80211_ops *hw_ops) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 60a8f06225c9..8809fe350b33 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -659,7 +659,7 @@ int iwl4965_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src); | |||
659 | int iwl4965_init_geos(struct iwl_priv *priv); | 659 | int iwl4965_init_geos(struct iwl_priv *priv); |
660 | void iwl4965_free_geos(struct iwl_priv *priv); | 660 | void iwl4965_free_geos(struct iwl_priv *priv); |
661 | 661 | ||
662 | extern const u8 iwl4965_broadcast_addr[ETH_ALEN]; | 662 | extern const u8 iwl_bcast_addr[ETH_ALEN]; |
663 | int iwl4965_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd); | 663 | int iwl4965_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd); |
664 | 664 | ||
665 | /* | 665 | /* |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index edde8142c13e..bb820f35d602 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -207,7 +207,6 @@ static inline u8 get_cmd_index(struct iwl_queue *q, u32 index, int is_huge) | |||
207 | return index & (q->n_window - 1); | 207 | return index & (q->n_window - 1); |
208 | } | 208 | } |
209 | 209 | ||
210 | const u8 iwl4965_broadcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; | ||
211 | 210 | ||
212 | /*************** STATION TABLE MANAGEMENT **** | 211 | /*************** STATION TABLE MANAGEMENT **** |
213 | * mac80211 should be examined to determine if sta_info is duplicating | 212 | * mac80211 should be examined to determine if sta_info is duplicating |
@@ -692,7 +691,7 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) | |||
692 | } | 691 | } |
693 | 692 | ||
694 | /* Add the broadcast address so we can send broadcast frames */ | 693 | /* Add the broadcast address so we can send broadcast frames */ |
695 | if (iwl4965_rxon_add_station(priv, iwl4965_broadcast_addr, 0) == | 694 | if (iwl4965_rxon_add_station(priv, iwl_bcast_addr, 0) == |
696 | IWL_INVALID_STATION) { | 695 | IWL_INVALID_STATION) { |
697 | IWL_ERROR("Error adding BROADCAST address for transmit.\n"); | 696 | IWL_ERROR("Error adding BROADCAST address for transmit.\n"); |
698 | return -EIO; | 697 | return -EIO; |
@@ -1059,9 +1058,9 @@ static u16 iwl4965_fill_probe_req(struct iwl_priv *priv, | |||
1059 | len += 24; | 1058 | len += 24; |
1060 | 1059 | ||
1061 | frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); | 1060 | frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); |
1062 | memcpy(frame->da, iwl4965_broadcast_addr, ETH_ALEN); | 1061 | memcpy(frame->da, iwl_bcast_addr, ETH_ALEN); |
1063 | memcpy(frame->sa, priv->mac_addr, ETH_ALEN); | 1062 | memcpy(frame->sa, priv->mac_addr, ETH_ALEN); |
1064 | memcpy(frame->bssid, iwl4965_broadcast_addr, ETH_ALEN); | 1063 | memcpy(frame->bssid, iwl_bcast_addr, ETH_ALEN); |
1065 | frame->seq_ctrl = 0; | 1064 | frame->seq_ctrl = 0; |
1066 | 1065 | ||
1067 | /* fill in our indirect SSID IE */ | 1066 | /* fill in our indirect SSID IE */ |
@@ -4912,7 +4911,7 @@ static void iwl4965_post_associate(struct iwl_priv *priv) | |||
4912 | /* clear out the station table */ | 4911 | /* clear out the station table */ |
4913 | iwlcore_clear_stations_table(priv); | 4912 | iwlcore_clear_stations_table(priv); |
4914 | 4913 | ||
4915 | iwl4965_rxon_add_station(priv, iwl4965_broadcast_addr, 0); | 4914 | iwl4965_rxon_add_station(priv, iwl_bcast_addr, 0); |
4916 | iwl4965_rxon_add_station(priv, priv->bssid, 0); | 4915 | iwl4965_rxon_add_station(priv, priv->bssid, 0); |
4917 | iwl4965_rate_scale_init(priv->hw, IWL_STA_ID); | 4916 | iwl4965_rate_scale_init(priv->hw, IWL_STA_ID); |
4918 | iwl4965_send_beacon_cmd(priv); | 4917 | iwl4965_send_beacon_cmd(priv); |
@@ -5324,7 +5323,7 @@ static void iwl4965_config_ap(struct iwl_priv *priv) | |||
5324 | priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; | 5323 | priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; |
5325 | iwl4965_commit_rxon(priv); | 5324 | iwl4965_commit_rxon(priv); |
5326 | iwl4965_activate_qos(priv, 1); | 5325 | iwl4965_activate_qos(priv, 1); |
5327 | iwl4965_rxon_add_station(priv, iwl4965_broadcast_addr, 0); | 5326 | iwl4965_rxon_add_station(priv, iwl_bcast_addr, 0); |
5328 | } | 5327 | } |
5329 | iwl4965_send_beacon_cmd(priv); | 5328 | iwl4965_send_beacon_cmd(priv); |
5330 | 5329 | ||