aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index 1480e1b698a4..7baed4db2f3f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -197,7 +197,7 @@ enum {
197 */ 197 */
198#define IWL4965_MAX_RATE (33) 198#define IWL4965_MAX_RATE (33)
199 199
200struct iwl4965_channel_info { 200struct iwl_channel_info {
201 struct iwl4965_channel_tgd_info tgd; 201 struct iwl4965_channel_tgd_info tgd;
202 struct iwl4965_channel_tgh_info tgh; 202 struct iwl4965_channel_tgh_info tgh;
203 struct iwl4965_eeprom_channel eeprom; /* EEPROM regulatory limit */ 203 struct iwl4965_eeprom_channel eeprom; /* EEPROM regulatory limit */
@@ -669,6 +669,8 @@ extern void iwl4965_set_decrypted_flag(struct iwl_priv *priv, struct sk_buff *sk
669 u32 decrypt_res, 669 u32 decrypt_res,
670 struct ieee80211_rx_status *stats); 670 struct ieee80211_rx_status *stats);
671extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr); 671extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr);
672int iwl4965_init_geos(struct iwl_priv *priv);
673void iwl4965_free_geos(struct iwl_priv *priv);
672 674
673extern const u8 iwl4965_broadcast_addr[ETH_ALEN]; 675extern const u8 iwl4965_broadcast_addr[ETH_ALEN];
674 676
@@ -755,11 +757,6 @@ extern void iwl4965_update_rate_scaling(struct iwl_priv *priv, u8 mode);
755extern void iwl4965_chain_noise_reset(struct iwl_priv *priv); 757extern void iwl4965_chain_noise_reset(struct iwl_priv *priv);
756extern void iwl4965_init_sensitivity(struct iwl_priv *priv, u8 flags, 758extern void iwl4965_init_sensitivity(struct iwl_priv *priv, u8 flags,
757 u8 force); 759 u8 force);
758extern int iwl4965_set_fat_chan_info(struct iwl_priv *priv,
759 enum ieee80211_band band,
760 u16 channel,
761 const struct iwl4965_eeprom_channel *eeprom_ch,
762 u8 fat_extension_channel);
763extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv); 760extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv);
764extern void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv, 761extern void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv,
765 u32 rate_n_flags, 762 u32 rate_n_flags,
@@ -995,7 +992,7 @@ struct iwl_priv {
995 992
996 /* we allocate array of iwl4965_channel_info for NIC's valid channels. 993 /* we allocate array of iwl4965_channel_info for NIC's valid channels.
997 * Access via channel # using indirect index array */ 994 * Access via channel # using indirect index array */
998 struct iwl4965_channel_info *channel_info; /* channel info array */ 995 struct iwl_channel_info *channel_info; /* channel info array */
999 u8 channel_count; /* # of channels */ 996 u8 channel_count; /* # of channels */
1000 997
1001 /* each calibration channel group in the EEPROM has a derived 998 /* each calibration channel group in the EEPROM has a derived
@@ -1229,44 +1226,44 @@ static inline int iwl4965_is_associated(struct iwl_priv *priv)
1229 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0; 1226 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;
1230} 1227}
1231 1228
1232static inline int is_channel_valid(const struct iwl4965_channel_info *ch_info) 1229static inline int is_channel_valid(const struct iwl_channel_info *ch_info)
1233{ 1230{
1234 if (ch_info == NULL) 1231 if (ch_info == NULL)
1235 return 0; 1232 return 0;
1236 return (ch_info->flags & EEPROM_CHANNEL_VALID) ? 1 : 0; 1233 return (ch_info->flags & EEPROM_CHANNEL_VALID) ? 1 : 0;
1237} 1234}
1238 1235
1239static inline int is_channel_narrow(const struct iwl4965_channel_info *ch_info) 1236static inline int is_channel_narrow(const struct iwl_channel_info *ch_info)
1240{ 1237{
1241 return (ch_info->flags & EEPROM_CHANNEL_NARROW) ? 1 : 0; 1238 return (ch_info->flags & EEPROM_CHANNEL_NARROW) ? 1 : 0;
1242} 1239}
1243 1240
1244static inline int is_channel_radar(const struct iwl4965_channel_info *ch_info) 1241static inline int is_channel_radar(const struct iwl_channel_info *ch_info)
1245{ 1242{
1246 return (ch_info->flags & EEPROM_CHANNEL_RADAR) ? 1 : 0; 1243 return (ch_info->flags & EEPROM_CHANNEL_RADAR) ? 1 : 0;
1247} 1244}
1248 1245
1249static inline u8 is_channel_a_band(const struct iwl4965_channel_info *ch_info) 1246static inline u8 is_channel_a_band(const struct iwl_channel_info *ch_info)
1250{ 1247{
1251 return ch_info->band == IEEE80211_BAND_5GHZ; 1248 return ch_info->band == IEEE80211_BAND_5GHZ;
1252} 1249}
1253 1250
1254static inline u8 is_channel_bg_band(const struct iwl4965_channel_info *ch_info) 1251static inline u8 is_channel_bg_band(const struct iwl_channel_info *ch_info)
1255{ 1252{
1256 return ch_info->band == IEEE80211_BAND_2GHZ; 1253 return ch_info->band == IEEE80211_BAND_2GHZ;
1257} 1254}
1258 1255
1259static inline int is_channel_passive(const struct iwl4965_channel_info *ch) 1256static inline int is_channel_passive(const struct iwl_channel_info *ch)
1260{ 1257{
1261 return (!(ch->flags & EEPROM_CHANNEL_ACTIVE)) ? 1 : 0; 1258 return (!(ch->flags & EEPROM_CHANNEL_ACTIVE)) ? 1 : 0;
1262} 1259}
1263 1260
1264static inline int is_channel_ibss(const struct iwl4965_channel_info *ch) 1261static inline int is_channel_ibss(const struct iwl_channel_info *ch)
1265{ 1262{
1266 return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0; 1263 return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0;
1267} 1264}
1268 1265
1269extern const struct iwl4965_channel_info *iwl4965_get_channel_info( 1266extern const struct iwl_channel_info *iwl4965_get_channel_info(
1270 const struct iwl_priv *priv, enum ieee80211_band band, u16 channel); 1267 const struct iwl_priv *priv, enum ieee80211_band band, u16 channel);
1271 1268
1272/* Requires full declaration of iwl_priv before including */ 1269/* Requires full declaration of iwl_priv before including */