Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFi 6 Support #82

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

WiFi 6 Support #82

wants to merge 1 commit into from

Conversation

kphanipavan
Copy link
Contributor

@kphanipavan kphanipavan commented Sep 21, 2024

Adds partial wifi 6 support.

Connection Test Screenshot:

Tested on an RTL8852BE WifFi 6 PCIe Card for hotspot and a Samsung S24+ Phone as host

Command used for testing:
sudo /usr/local/bin/lnxrouter --dns 127.0.0.1 -d --ap $interface rock5boi -p asiudfbla --no-virt -c 149 --freq-band 5 -w "1+2" --no-virt --hs20 --wifi4 --req-ht --ht-capab "[HT40+][HT40-][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40][SMPS-STATIC]" --wifi5 --req-vht --vht-capab "[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][SU-BEAMFORMEE][HTC-VHT]" --vht-ch-width 1 --vht-seg0-ch 155 --country BZ --no-dnsmasq -g 10.9.8.1 --ieee80211ax --he-ch-width 1 --he-seg0-ch 155

New arguments:

  1. --wifi6 Enable IEEE 802.11ax (HE)
  2. --req-he Require station HE (High Efficiency) mode
  3. --he-ch-width <index> Index of HE channel width:
    0 for 20MHz or 40MHz (default)
    1 for 80MHz
    2 for 160MHz
    3 for 80+80MHz (Non-contigous 160MHz)
  4. --he-seg0-ch <channel> Channel index of HE center frequency for primary
    segment. Use with '--he-ch-width'
  5. --he-seg1-ch <channel> Channel index of HE center frequency for secondary
    (second 80MHz) segment. Use with '--he-ch-width 3'

Above arguments operate similar to their wifi5 counterparts.

Notes:

  • Wifi 6 requires hostapd built with wifi 6 support, with "CONFIG_IEEE80211AX=y" in buildconf
  • Wifi 6 hotspot only works with wifi 6 cards only
  • Requires additional testing
  • Need to add more HE capabilities to the script.
  • Wifi 6 is backward compatible with wifi 5 clients only if --req-he is NOT used.
Error when trying to connect with a WiFi 5 client to a WiFi 6 Hotspot WITH `--req-he`

Red box shows the error when a wifi 5 client tries to connect when --req-he is used. Green box shows a successful connection to a wifi 6 client

Screenshot_20240921_171254

@garywill
Copy link
Owner

Sorry for late reply. Could you please rebase? Your commit seems to base on a quite old branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants