mac80211: fix bss_conf.dtim_period
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 5 Feb 2010 10:45:06 +0000 (11:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Feb 2010 21:50:57 +0000 (16:50 -0500)
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>
net/mac80211/cfg.c

index a362523d8eb7a3181fe30ebfb848ea29efeb449a..e1731b7c2523b148577c0d6d82fc43ebb72c1e73 100644 (file)
@@ -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();