mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-26 19:36:41 +00:00
mac80211: use bss_conf->dtim_period instead of conf.ps_dtim_period
sta_set_sinfo is obviously takes data for specific station. This specific station is attached to a specific virtual interface. Hence we should use the dtim_period from this virtual interface rather than the system wide dtim_period. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
bd8c78e78d
commit
785e21a89d
@ -1822,7 +1822,7 @@ void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo)
|
||||
sinfo->bss_param.flags |= BSS_PARAM_FLAGS_SHORT_PREAMBLE;
|
||||
if (sdata->vif.bss_conf.use_short_slot)
|
||||
sinfo->bss_param.flags |= BSS_PARAM_FLAGS_SHORT_SLOT_TIME;
|
||||
sinfo->bss_param.dtim_period = sdata->local->hw.conf.ps_dtim_period;
|
||||
sinfo->bss_param.dtim_period = sdata->vif.bss_conf.dtim_period;
|
||||
sinfo->bss_param.beacon_interval = sdata->vif.bss_conf.beacon_int;
|
||||
|
||||
sinfo->sta_flags.set = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user