Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314219
b: refs/heads/master
c: 20041ea
h: refs/heads/master
i:
  314217: 676356c
  314215: d932867
v: v3
  • Loading branch information
Johannes Berg committed Jun 6, 2012
1 parent ff02dc7 commit abce985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6468a01a7181f3572a3e686910016f89ee71ff45
refs/heads/master: 20041ea622fcb1992df536d253de5120808e64a5
24 changes: 1 addition & 23 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn-sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,26 +171,6 @@ int iwl_send_add_sta(struct iwl_priv *priv,
return cmd.handler_status;
}

static bool iwl_is_channel_extension(struct iwl_priv *priv,
enum ieee80211_band band,
u16 channel, u8 extension_chan_offset)
{
const struct iwl_channel_info *ch_info;

ch_info = iwl_get_channel_info(priv, band, channel);
if (!is_channel_valid(ch_info))
return false;

if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_ABOVE)
return !(ch_info->ht40_extension_channel &
IEEE80211_CHAN_NO_HT40PLUS);
else if (extension_chan_offset == IEEE80211_HT_PARAM_CHA_SEC_BELOW)
return !(ch_info->ht40_extension_channel &
IEEE80211_CHAN_NO_HT40MINUS);

return false;
}

bool iwl_is_ht40_tx_allowed(struct iwl_priv *priv,
struct iwl_rxon_context *ctx,
struct ieee80211_sta_ht_cap *ht_cap)
Expand All @@ -210,9 +190,7 @@ bool iwl_is_ht40_tx_allowed(struct iwl_priv *priv,
return false;
#endif

return iwl_is_channel_extension(priv, priv->band,
le16_to_cpu(ctx->staging.channel),
ctx->ht.extension_chan_offset);
return true;
}

static void iwl_sta_calc_ht_flags(struct iwl_priv *priv,
Expand Down

0 comments on commit abce985

Please sign in to comment.