Search Linux Wireless

Re: [PATCH v2 1/1] mac80211: tell driver when dtim change detected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2010-01-21 at 12:31 -0800, wey-yi.w.guy@xxxxxxxxx wrote:

> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c

This is all in mlme.c, so ...

> +static void ieee80211_update_dtim(struct ieee80211_sub_if_data *sdata,
> +				  struct ieee80211_local *local,
> +				  struct ieee80211_bss *bss)
> +{
> +	if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS))
> +		return;
> +
> +	if (sdata->vif.type == NL80211_IFTYPE_STATION &&

I don't think you need this check?

> +	    sdata->vif.bss_conf.dtim_period != bss->dtim_period) {
> +		sdata->vif.bss_conf.dtim_period = bss->dtim_period;
> +		ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_PS);
> +		mutex_lock(&local->iflist_mtx);
> +		ieee80211_recalc_ps(local, -1);
> +		mutex_unlock(&local->iflist_mtx);

And afaict recalc_ps() will call hw_config() if appropriate.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux