Search Linux Wireless

Re: [RFC] rt2x00: Add autowakeup timer for receiving beacons while in powersave mode

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

 



Hi,

>> +     if (test_bit(DRIVER_REQUIRE_PS_AUTOWAKE, &rt2x00dev->flags) &&
>> +         (ieee80211_flags & IEEE80211_CONF_CHANGE_PS) &&
>> +         (conf->flags & IEEE80211_CONF_PS))
>> +             queue_delayed_work(rt2x00dev->workqueue,
>> +                                &rt2x00dev->autowakeup_work,
>> +                                msecs_to_jiffies(rt2x00dev->beacon_int) - 1);
>> +
>
> I have doubts about this part.  Doesn't this just catch
> one beacon?  I'm not sure how often mac80211 calls the .config
> op, I thought it is called once when going to sleep, and then the
> hw/fw/driver is responsible to wakeup every n'th beacon
> (according to the configured listen interval).

Yes, I was also doubting about that. But is the listen_interval is TU, msecs,
or the number of beacons?

> Also, I think rt2x00dev->beacon_int is in TUs, not msecs.

Nope, it is in msecs :)

Ivo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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