aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlegacy/common.h')
-rw-r--r--drivers/net/wireless/iwlegacy/common.h30
1 files changed, 12 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h
index abfa388588be..ba801c7d9ad4 100644
--- a/drivers/net/wireless/iwlegacy/common.h
+++ b/drivers/net/wireless/iwlegacy/common.h
@@ -1171,17 +1171,6 @@ struct il_rxon_context {
1171 u32 interface_modes, exclusive_interface_modes; 1171 u32 interface_modes, exclusive_interface_modes;
1172 u8 unused_devtype, ap_devtype, ibss_devtype, station_devtype; 1172 u8 unused_devtype, ap_devtype, ibss_devtype, station_devtype;
1173 1173
1174 /*
1175 * We declare this const so it can only be
1176 * changed via explicit cast within the
1177 * routines that actually update the physical
1178 * hardware.
1179 */
1180 const struct il_rxon_cmd active;
1181 struct il_rxon_cmd staging;
1182
1183 struct il_rxon_time_cmd timing;
1184
1185 struct il_qos_info qos_data; 1174 struct il_qos_info qos_data;
1186 1175
1187 u8 bcast_sta_id, ap_sta_id; 1176 u8 bcast_sta_id, ap_sta_id;
@@ -1306,6 +1295,17 @@ struct il_priv {
1306 1295
1307 struct il_rxon_context ctx; 1296 struct il_rxon_context ctx;
1308 1297
1298 /*
1299 * We declare this const so it can only be
1300 * changed via explicit cast within the
1301 * routines that actually update the physical
1302 * hardware.
1303 */
1304 const struct il_rxon_cmd active;
1305 struct il_rxon_cmd staging;
1306
1307 struct il_rxon_time_cmd timing;
1308
1309 __le16 switch_channel; 1309 __le16 switch_channel;
1310 1310
1311 /* 1st responses from initialize and runtime uCode images. 1311 /* 1st responses from initialize and runtime uCode images.
@@ -1530,7 +1530,7 @@ il_rxon_ctx_from_vif(struct ieee80211_vif *vif)
1530static inline int 1530static inline int
1531il_is_associated(struct il_priv *il) 1531il_is_associated(struct il_priv *il)
1532{ 1532{
1533 return (il->ctx.active.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0; 1533 return (il->active.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;
1534} 1534}
1535 1535
1536static inline int 1536static inline int
@@ -1540,12 +1540,6 @@ il_is_any_associated(struct il_priv *il)
1540} 1540}
1541 1541
1542static inline int 1542static inline int
1543il_is_associated_ctx(struct il_rxon_context *ctx)
1544{
1545 return (ctx->active.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;
1546}
1547
1548static inline int
1549il_is_channel_valid(const struct il_channel_info *ch_info) 1543il_is_channel_valid(const struct il_channel_info *ch_info)
1550{ 1544{
1551 if (ch_info == NULL) 1545 if (ch_info == NULL)