Search Linux Wireless

[PATCH 2/4] iw: handle all chan width cases

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

 



Signed-off-by: Markus Theil <markus.theil@xxxxxxxxxxxxx>
---
 measurements.c | 5 +++++
 util.c         | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/measurements.c b/measurements.c
index 385143f..49ef946 100644
--- a/measurements.c
+++ b/measurements.c
@@ -153,8 +153,13 @@ static int parse_ftm_target(struct nl_msg *msg, char *str, int peer_index)
 
 		switch (str_to_bw(bw)) {
 		case NL80211_CHAN_WIDTH_20_NOHT:
+		case NL80211_CHAN_WIDTH_1:
+		case NL80211_CHAN_WIDTH_2:
+		case NL80211_CHAN_WIDTH_4:
 		case NL80211_CHAN_WIDTH_5:
+		case NL80211_CHAN_WIDTH_8:
 		case NL80211_CHAN_WIDTH_10:
+		case NL80211_CHAN_WIDTH_16:
 			preamble = NL80211_PREAMBLE_LEGACY;
 			break;
 		case NL80211_CHAN_WIDTH_20:
diff --git a/util.c b/util.c
index ac6a96d..ebb2de8 100644
--- a/util.c
+++ b/util.c
@@ -492,8 +492,13 @@ static int parse_freqs(struct chandef *chandef, int argc, char **argv,
 		/* First argument was not understood, give up gracefully. */
 		return 0;
 	case NL80211_CHAN_WIDTH_20:
+	case NL80211_CHAN_WIDTH_1:
+	case NL80211_CHAN_WIDTH_2:
+	case NL80211_CHAN_WIDTH_4:
 	case NL80211_CHAN_WIDTH_5:
+	case NL80211_CHAN_WIDTH_8:
 	case NL80211_CHAN_WIDTH_10:
+	case NL80211_CHAN_WIDTH_16:
 		break;
 	case NL80211_CHAN_WIDTH_80P80:
 		need_cf2 = true;
-- 
2.28.0




[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