Search Linux Wireless

Re: preparing for 802.11ah channels

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

 



On Fri, 2019-03-22 at 21:46 +0100, Johannes Berg wrote:
> 
> In effect, an existing
> 
> 	u32 freq;
> 
> would become
> 
> 	u32 freq, freq_fractional;
> 
> and we'd just treat the two as a 32.32 fixed point integer.

Maybe easier would be to say

	u32 freq;
	u16 freq_partial_khz;

and basically say

	freq_khz = freq * 1000 + freq_partial_khz;

Same reasoning and similar logic, but no need to do any sort of fixed
point conversions.

johannes




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux