Skip to content

Commit

Permalink
Add 10MHz HT channels (8812eu only)
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed May 12, 2024
1 parent e4dc055 commit cfed790
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion wfb_ng/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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+'
Expand Down

0 comments on commit cfed790

Please sign in to comment.