Search Linux Wireless

Re: [PATCH v2 3/7] nl80211/cfg80211: add ability to enable TX on op-channel

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

 



On Wed, Jun 20, 2012 at 11:44 AM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
>
>> +     if ((!chan->radar_detect_timeout ||
>> +          time_is_after_jiffies(chan->radar_detect_timeout)) &&
>> +         (chan->flags & IEEE80211_CHAN_RADAR))
>> +             return -EPERM;
>
> Ok so you reject it if it's 0, but the jiffies calculation could return
> 0 too.. in fact, since jiffies start at -5 minutes on boot, you might
> even hit it if you start radar detection 4 minutes after boot.
>

good point, I will add additional flag to cover this corner case.

-- 
Thanks,
Victor.
--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux