Search Linux Wireless

Re: [PATCH 1/2] nl80211/cfg80211: extend mgmt-tx API for off-channel

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

 



On 11/25/2010 10:05 AM, Johannes Berg wrote:
On Thu, 2010-11-25 at 09:00 -0800, Ben Greear wrote:
What are the units for DURATION?  It seems the code is treating
that as jiffies, but surely user-space should specify in msecs
or similar and have the kernel do the conversion?

This code isn't even using them at all, and the nl80211 API specifies
milliseconds. Where do you see it look like jiffies?

Sorry, the code looks right, I was mis-reading this part from the
next patch:

 static enum work_action __must_check
+ieee80211_offchannel_tx(struct ieee80211_work *wk)
+{
+	if (!wk->started) {
+		wk->timeout = jiffies + msecs_to_jiffies(wk->offchan_tx.wait);


johannes


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com
--
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