Skip to content

Commit

Permalink
mac80211: fix bss_conf.dtim_period
Browse files Browse the repository at this point in the history
In AP mode, the only mode where the parameter
is supposed to be valid, we never assign it!
Fix that to allow drivers to avoid parsing
the TIM IE for the value.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Feb 8, 2010
1 parent 199d69f commit 19885c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ static int ieee80211_config_beacon(struct ieee80211_sub_if_data *sdata,
if (old)
memcpy(new->tail, old->tail, new_tail_len);

sdata->vif.bss_conf.dtim_period = new->dtim_period;

rcu_assign_pointer(sdata->u.ap.beacon, new);

synchronize_rcu();
Expand Down

0 comments on commit 19885c4

Please sign in to comment.