diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-10 18:01:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:23 -0400 |
commit | 05c914fe330fa8e1cc67870dc0d3809dfd96c107 (patch) | |
tree | df53bcab47335f3361c09478d6b1447b7d298536 /drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |
parent | 96dd22ac06b0dbfb069fdf530c72046a941e9694 (diff) |
mac80211: use nl80211 interface types
There's really no reason for mac80211 to be using its
own interface type defines. Use the nl80211 types and
simplify the configuration code a bit: there's no need
to translate them any more now.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index c293e5b6cbb5..700da67ac288 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -821,7 +821,7 @@ static void rs_tx_status(void *priv_rate, struct net_device *dev, | |||
821 | 821 | ||
822 | lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv; | 822 | lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv; |
823 | 823 | ||
824 | if ((priv->iw_mode == IEEE80211_IF_TYPE_IBSS) && | 824 | if ((priv->iw_mode == NL80211_IFTYPE_ADHOC) && |
825 | !lq_sta->ibss_sta_added) | 825 | !lq_sta->ibss_sta_added) |
826 | goto out; | 826 | goto out; |
827 | 827 | ||
@@ -2093,7 +2093,7 @@ static void rs_initialize_lq(struct iwl_priv *priv, | |||
2093 | i = sta->last_txrate_idx; | 2093 | i = sta->last_txrate_idx; |
2094 | 2094 | ||
2095 | if ((lq_sta->lq.sta_id == 0xff) && | 2095 | if ((lq_sta->lq.sta_id == 0xff) && |
2096 | (priv->iw_mode == IEEE80211_IF_TYPE_IBSS)) | 2096 | (priv->iw_mode == NL80211_IFTYPE_ADHOC)) |
2097 | goto out; | 2097 | goto out; |
2098 | 2098 | ||
2099 | valid_tx_ant = priv->hw_params.valid_tx_ant; | 2099 | valid_tx_ant = priv->hw_params.valid_tx_ant; |
@@ -2163,7 +2163,7 @@ static void rs_get_rate(void *priv_rate, struct net_device *dev, | |||
2163 | lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv; | 2163 | lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv; |
2164 | i = sta->last_txrate_idx; | 2164 | i = sta->last_txrate_idx; |
2165 | 2165 | ||
2166 | if ((priv->iw_mode == IEEE80211_IF_TYPE_IBSS) && | 2166 | if ((priv->iw_mode == NL80211_IFTYPE_ADHOC) && |
2167 | !lq_sta->ibss_sta_added) { | 2167 | !lq_sta->ibss_sta_added) { |
2168 | u8 sta_id = iwl_find_station(priv, hdr->addr1); | 2168 | u8 sta_id = iwl_find_station(priv, hdr->addr1); |
2169 | DECLARE_MAC_BUF(mac); | 2169 | DECLARE_MAC_BUF(mac); |
@@ -2243,7 +2243,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta, | |||
2243 | * after assoc.. */ | 2243 | * after assoc.. */ |
2244 | 2244 | ||
2245 | lq_sta->ibss_sta_added = 0; | 2245 | lq_sta->ibss_sta_added = 0; |
2246 | if (priv->iw_mode == IEEE80211_IF_TYPE_AP) { | 2246 | if (priv->iw_mode == NL80211_IFTYPE_AP) { |
2247 | u8 sta_id = iwl_find_station(priv, sta->addr); | 2247 | u8 sta_id = iwl_find_station(priv, sta->addr); |
2248 | DECLARE_MAC_BUF(mac); | 2248 | DECLARE_MAC_BUF(mac); |
2249 | 2249 | ||