Search Linux Wireless

Re: [PATCH v2 1/2] nl80211/cfg80211: add scan channel times to scan command

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

 



On Wed, May 30, 2012 at 7:33 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Wed, 2012-05-30 at 18:59 +0300, Victor Goldenshtein wrote:
>
>>  #define IEEE80211_SCAN_RESULT_EXPIRE (30 * HZ)
>> +#define      IEEE80211_CHANNEL_TIME          (HZ / 33)
>> +#define      IEEE80211_PASSIVE_CHANNEL_TIME  (HZ / 8)
>
> And as you just heard on IRC, this is bogus since the units are supposed
> to be TU, not jiffies (which isn't a valid unit to use in a userspace
> API anyway since it's not even a "constant" unit)
>

will define the default scan times in TU as:

+#define      IEEE80211_CHANNEL_TIME_TU                      (1024 / 33)
+#define      IEEE80211_PASSIVE_CHANNEL_TIME_TU  (1024 / 8)

and will convert them back to jiffies in the software scan.

-- 
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