iwlwifi: store default station flags in context
authorJohannes Berg <johannes.berg@intel.com>
Mon, 23 Aug 2010 08:46:44 +0000 (10:46 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 27 Aug 2010 16:26:28 +0000 (09:26 -0700)
Since the default context is initialised to zero,
and the default flags are zero, no more code is
needed to initialise them right now, but another
context can have different default flags.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-sta.c

index ef7862b..2f9d1da 100644 (file)
@@ -1137,6 +1137,8 @@ struct iwl_rxon_context {
 
        struct iwl_wep_key wep_keys[WEP_KEYS_MAX];
        u8 key_mapping_keys;
+
+       __le32 station_flags;
 };
 
 struct iwl_priv {
index ac6e2be..e6bb81b 100644 (file)
@@ -289,7 +289,7 @@ static u8 iwl_prep_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
        memcpy(station->sta.sta.addr, addr, ETH_ALEN);
        station->sta.mode = 0;
        station->sta.sta.sta_id = sta_id;
-       station->sta.station_flags = 0;
+       station->sta.station_flags = ctx->station_flags;
        station->ctxid = ctx->ctxid;
 
        /*