[PATCH 2/6] driver_nl80211: Support 6Ghz channels

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

 



Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@xxxxxxxxx>
---
 src/drivers/driver_nl80211_capa.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c
index ab9b19f393..be7db5f4d6 100644
--- a/src/drivers/driver_nl80211_capa.c
+++ b/src/drivers/driver_nl80211_capa.c
@@ -1738,6 +1738,9 @@ wpa_driver_nl80211_postprocess_modes(struct hostapd_hw_modes *modes,
 			}
 		} else if (modes[m].channels[0].freq > 50000)
 			modes[m].mode = HOSTAPD_MODE_IEEE80211AD;
+		else if (modes[m].channels[0].freq > 5940 &&
+			 modes[m].channels[0].freq <= 7105)
+			modes[m].mode = HOSTAPD_MODE_IEEE80211AX;
 		else
 			modes[m].mode = HOSTAPD_MODE_IEEE80211A;
 	}
@@ -2129,6 +2132,8 @@ static const char * modestr(enum hostapd_hw_mode mode)
 		return "802.11g";
 	case HOSTAPD_MODE_IEEE80211A:
 		return "802.11a";
+	case HOSTAPD_MODE_IEEE80211AX:
+		return "802.11ax";
 	case HOSTAPD_MODE_IEEE80211AD:
 		return "802.11ad";
 	default:
-- 
2.19.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux