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