提交 770e13bd 编写于 作者: J Johannes Berg 提交者: Wey-Yi Guy

iwlwifi: store default station flags in context

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: NJohannes Berg <johannes.berg@intel.com>
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
上级 c10afb6e
...@@ -1137,6 +1137,8 @@ struct iwl_rxon_context { ...@@ -1137,6 +1137,8 @@ struct iwl_rxon_context {
struct iwl_wep_key wep_keys[WEP_KEYS_MAX]; struct iwl_wep_key wep_keys[WEP_KEYS_MAX];
u8 key_mapping_keys; u8 key_mapping_keys;
__le32 station_flags;
}; };
struct iwl_priv { struct iwl_priv {
......
...@@ -289,7 +289,7 @@ static u8 iwl_prep_station(struct iwl_priv *priv, struct iwl_rxon_context *ctx, ...@@ -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); memcpy(station->sta.sta.addr, addr, ETH_ALEN);
station->sta.mode = 0; station->sta.mode = 0;
station->sta.sta.sta_id = sta_id; station->sta.sta.sta_id = sta_id;
station->sta.station_flags = 0; station->sta.station_flags = ctx->station_flags;
station->ctxid = ctx->ctxid; station->ctxid = ctx->ctxid;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册