From cfed790de58d6522dd1061dfe5e0fea88e831ee8 Mon Sep 17 00:00:00 2001 From: Vasily Evseenko Date: Mon, 13 May 2024 01:11:22 +0300 Subject: [PATCH] Add 10MHz HT channels (8812eu only) --- src/tx.cpp | 3 +++ wfb_ng/server.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tx.cpp b/src/tx.cpp index 9d0aa616..d71c6f00 100644 --- a/src/tx.cpp +++ b/src/tx.cpp @@ -674,6 +674,9 @@ int main(int argc, char * const *argv) uint8_t flags = 0; switch(bandwidth) { + case 10: + flags |= IEEE80211_RADIOTAP_MCS_BW_20; + break; case 20: flags |= IEEE80211_RADIOTAP_MCS_BW_20; break; diff --git a/wfb_ng/server.py b/wfb_ng/server.py index 72d2bf61..36d4ccc1 100644 --- a/wfb_ng/server.py +++ b/wfb_ng/server.py @@ -416,7 +416,9 @@ def start(self): @defer.inlineCallbacks def init_wlans(max_bw, wlans): - if max_bw == 20: + if max_bw == 10: + ht_mode = '10MHz' + elif max_bw == 20: ht_mode = 'HT20' elif max_bw == 40: ht_mode = 'HT40+'