Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314212
b: refs/heads/master
c: 7ad580c
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg committed Jun 6, 2012
1 parent 140ad4b commit ecc68f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: aca86268faad5caed582de463c96061605c8ad60
refs/heads/master: 7ad580c2e6d918379b89668ea4e58a3599e27ee5
12 changes: 2 additions & 10 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
void iwl_connection_init_rx_config(struct iwl_priv *priv,
struct iwl_rxon_context *ctx)
{
const struct iwl_channel_info *ch_info;

memset(&ctx->staging, 0, sizeof(ctx->staging));

if (!ctx->vif) {
Expand Down Expand Up @@ -80,14 +78,8 @@ void iwl_connection_init_rx_config(struct iwl_priv *priv,
ctx->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK;
#endif

ch_info = iwl_get_channel_info(priv, priv->band,
le16_to_cpu(ctx->active.channel));

if (!ch_info)
ch_info = &priv->channel_info[0];

ctx->staging.channel = cpu_to_le16(ch_info->channel);
priv->band = ch_info->band;
ctx->staging.channel = cpu_to_le16(priv->hw->conf.channel->hw_value);
priv->band = priv->hw->conf.channel->band;

iwl_set_flags_for_band(priv, ctx, priv->band, ctx->vif);

Expand Down

0 comments on commit ecc68f2

Please sign in to comment.