Search Linux Wireless

Re: [PATCH v2] mac80211: Fix a race on enabling power save.

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

 



On Fri, Feb 4, 2011 at 7:38 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
> On Fri, 2011-02-04 at 18:58 +0530, Vivek Natarajan wrote:
>> On Fri, Feb 4, 2011 at 6:42 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
>> > On Fri, 2011-02-04 at 14:08 +0100, Johannes Berg wrote:
>> > Ok maybe I see how this helps -- but I don't think it's race-free. When
>> > the PS-pending flag is cleared here, the code above that checks it might
>> > already have passed and be in the driver callback or so.
>>
>> When it is in the driver callback, IEEE80211_CONF_PS would have been
>> set and when this is set, ieee80211_tx_h_dynamic_ps will disable PS
>> and there wont be any discrepancy in power save states between AP and
>> the station.
>
> Indeed, but the trace still exists between checking PS_PENDING and
> setting CONF_PS.

Agreed. :)
I will try this out and test a bit:
>
> Maybe the subif queues should be stopped, then flush, then tx nullfunc,
> then stop all queues to configure the HW or something like that?
>
> johannes
>

Thanks
Vivek.
--
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