Skip to content

Commit

Permalink
iwlwifi: store default station flags in context
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Wey-Yi Guy committed Aug 27, 2010
1 parent c10afb6 commit 770e13b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/net/wireless/iwlwifi/iwl-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 770e13b

Please sign in to comment.