Commit 908fdcd
authored
Fix failed to arm interface on 5GHz by distinguishing band suffixes
Description
Bug Description: When running Wifite2 with --hcxdump on 5GHz channels (e.g., channel 36, 40, 149), hcxdumptool fails to start with the error: failed to arm interface.
Root Cause: In wifite/tools/hcxdumptool.py, the previous code blindly appended the 'a' suffix (indicating 2.4GHz) to all numeric channels.
Channel 6 becomes 6a (Valid for 2.4GHz).
Channel 40 becomes 40a (Invalid: implies channel 40 on the 2.4GHz band).
This causes hcxdumptool (or the underlying driver) to reject the command because channel 40 does not exist on the 2.4GHz band.
The Fix: I have refactored the channel logic to remove the forced 'a' suffix for all channels. The code now checks the channel number to apply the correct band suffix:
Channels <= 14: Appends 'a' (2.4GHz).
Channels > 14: Appends 'b' (5GHz).
This ensures valid channel arguments are passed to the tool for both frequency bands.1 parent dc544e0 commit 908fdcd
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
0 commit comments