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 ef7862b5e91ca3f4d503c590c357542044f79d1a..2f9d1daff55486178c926cf061e4301af924647d 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 ac6e2be3528455c74452f03d490b70845a1cf7cc..e6bb81b1514c8a5f07f0244e32f0c6b0ddbb30eb 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;
 
        /*
This page took 0.027736 seconds and 5 git commands to generate.