We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8f6a0 commit 461ce35Copy full SHA for 461ce35
net/wireless/core.c
@@ -5,7 +5,7 @@
5
* Copyright 2006-2010 Johannes Berg <[email protected]>
6
* Copyright 2013-2014 Intel Mobile Communications GmbH
7
* Copyright 2015-2017 Intel Deutschland GmbH
8
- * Copyright (C) 2018-2019 Intel Corporation
+ * Copyright (C) 2018-2020 Intel Corporation
9
*/
10
11
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
@@ -807,6 +807,11 @@ int wiphy_register(struct wiphy *wiphy)
807
!sband->n_bitrates))
808
return -EINVAL;
809
810
+ if (WARN_ON(band == NL80211_BAND_6GHZ &&
811
+ (sband->ht_cap.ht_supported ||
812
+ sband->vht_cap.vht_supported)))
813
+ return -EINVAL;
814
+
815
/*
816
* Since cfg80211_disable_40mhz_24ghz is global, we can
817
* modify the sband's ht data even if the driver uses a
0 commit comments