Skip to content

Commit

Permalink
iwlegacy: remove il_ieee80211_get_hw_conf
Browse files Browse the repository at this point in the history
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
  • Loading branch information
Stanislaw Gruszka committed Nov 15, 2011
1 parent d4459a9 commit 6278dda
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlegacy/3945-mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ void il3945_post_associate(struct il_priv *il)

il_scan_cancel_timeout(il, 200);

conf = il_ieee80211_get_hw_conf(il->hw);
conf = &il->hw->conf;

ctx->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il3945_commit_rxon(il, ctx);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlegacy/4965.c
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,7 @@ static void il4965_post_associate(struct il_priv *il)

il_scan_cancel_timeout(il, 200);

conf = il_ieee80211_get_hw_conf(il->hw);
conf = &il->hw->conf;

ctx->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il_commit_rxon(il, ctx);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlegacy/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -3514,7 +3514,7 @@ il_send_rxon_timing(struct il_priv *il, struct il_rxon_context *ctx)
u16 beacon_int;
struct ieee80211_vif *vif = ctx->vif;

conf = il_ieee80211_get_hw_conf(il->hw);
conf = &il->hw->conf;

lockdep_assert_held(&il->mutex);

Expand Down
6 changes: 0 additions & 6 deletions drivers/net/wireless/iwlegacy/iwl-helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@
#define IL_MASK(lo, hi) ((1 << (hi)) | ((1 << (hi)) - (1 << (lo))))


static inline struct ieee80211_conf *il_ieee80211_get_hw_conf(
struct ieee80211_hw *hw)
{
return &hw->conf;
}

/**
* il_queue_inc_wrap - increment queue idx, wrap back to beginning
* @idx -- current idx
Expand Down

0 comments on commit 6278dda

Please sign in to comment.