Search Linux Wireless

Re: [PATCH] cfg80211: Convert 6 GHz channel frequency to channel number

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

 



Correction in typo below:

On 2019-08-30 11:03, asinghal@xxxxxxxxxxxxxx wrote:
On 2019-08-30 03:45, Arend Van Spriel wrote:
On 8/30/2019 12:21 AM, Amar Singhal wrote:
Enhance function ieee80211_frequency_to_channel by adding 6 GHz
channels.

This look very similar to what I submitted earlier:

https://patchwork.kernel.org/patch/11073197/

Regards,
Arend
-	else if (freq <= 45000) /* DMG band lower limit */
+	else if (freq < 5940)
 		return (freq - 5000) / 5;
+	else if (freq <= 45000) /* DMG band lower limit */
+		/* see 802.11ax D4.1 27.3.22.2 */
+		return (freq - 5940) / 5;

hi Arend,
          I see a small issue in your patch above; for frequency 5940,
the channel number returned would be 0 which is an invalid channel. I
guess 6 GHz center frequency numbers begin with 5945.

rgds,
Amar



[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