Add 10MHz HT channels (8812eu only)

This commit is contained in:
Vasily Evseenko 2024-05-13 01:11:22 +03:00
parent e4dc05514b
commit cfed790de5
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -416,7 +416,9 @@ class TXProtocol(ProcessProtocol):
@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+'