Changes between Version 30 and Version 31 of expansion/gw16159
- Timestamp:
- 09/03/2025 07:48:08 PM (3 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
expansion/gw16159
v30 v31 352 352 [=#kernel-patches] 353 353 === Kernel Patches 354 There is a small set of kernel patches from !MorseMicro which may improve the experience for 802.11ah for specific use cases. Gateworks has found these patches to be unnecessary for most use cases including AP, STA, and 802.11 SMESH. These patches from !MorseMicro exist for several LTS kernels at https://github.com/MorseMicro/linux354 There is a small set of kernel patches from !MorseMicro which may improve the experience for 802.11ah for specific use cases. Gateworks has found these patches to be unnecessary for most use cases including AP, STA, and 802.11s MESH. These patches from !MorseMicro exist for several LTS kernels at https://github.com/MorseMicro/linux 355 355 356 356 Here is an evaluation of the various patches for a 6.6 kernel: … … 461 461 * [https://github.com/MorseMicro/hostap/blob/v1.14/hostapd_s1g_configuration.md hostapd_s1g_configuration] 462 462 463 Example configurations: 464 * infrastructure mode using WPA2: 463 464 Below are examples for configuring WPA2/WPA3 AP + STA, along with WPA3 Mesh. 465 * Infrastructure mode using WPA2: 465 466 - AP: 466 467 {{{#!bash 467 cat << EOF > hostapd_s1g .conf468 cat << EOF > hostapd_s1g_wpa2.conf 468 469 interface=wlan0 469 470 logger_syslog=-1 … … 530 531 rsn_pairwise=CCMP 531 532 EOF 532 hostapd_s1g ./hostapd_s1g .conf -B533 hostapd_s1g ./hostapd_s1g_wpa2.conf -B 533 534 ifconfig wlan0 192.168.1.1 534 535 iperf3 -s … … 536 537 * STA: 537 538 {{{#!bash 539 #wpa_passphrase generates WPA2 wpa_supplicant configuration 538 540 wpa_passphrase_s1g HaLow-WPA2 strongpassword123 > wpa_supplicant_s1g.conf 539 wpa_supplicant_s1g -iwlan0 -c ./wpa_supplicant_s1g.conf & 541 #ensure wlan0 interface is up 542 ifconfig wlan0 up 543 #Start wpa_supplicant_s1g, send to background (replace & with -d for debug) 544 wpa_supplicant_s1g -i wlan0 -c ./wpa_supplicant_s1g.conf & 545 #assign static IP; DHCP is not part of this example 540 546 ifconfig wlan0 192.168.1.128 541 547 iperf3 -c 192.168.1.1 542 548 }}} 543 * 802.11s MESH using WPA3: 549 550 * Infrastructure mode using WPA3: 551 * AP: 552 {{{#!bash 553 cat << EOF > hostapd_s1g_wpa3.conf 554 interface=wlan0 555 logger_syslog=-1 556 logger_syslog_level=2 557 logger_stdout=-1 558 logger_stdout_level=2 559 ctrl_interface=/var/run/hostapd 560 ctrl_interface_group=0 561 ssid=HaLow-WPA3 562 country_code=US 563 hw_mode=a 564 beacon_int=100 565 dtim_period=2 566 max_num_sta=255 567 rts_threshold=-1 568 fragm_threshold=-1 569 macaddr_acl=0 570 auth_algs=3 571 ignore_broadcast_ssid=0 572 wmm_enabled=1 573 wmm_ac_bk_cwmin=4 574 wmm_ac_bk_cwmax=10 575 wmm_ac_bk_aifs=7 576 wmm_ac_bk_txop_limit=0 577 wmm_ac_bk_acm=0 578 wmm_ac_be_aifs=3 579 wmm_ac_be_cwmin=4 580 wmm_ac_be_cwmax=10 581 wmm_ac_be_txop_limit=0 582 wmm_ac_be_acm=0 583 wmm_ac_vi_aifs=2 584 wmm_ac_vi_cwmin=3 585 wmm_ac_vi_cwmax=4 586 wmm_ac_vi_txop_limit=94 587 wmm_ac_vi_acm=0 588 wmm_ac_vo_aifs=2 589 wmm_ac_vo_cwmin=2 590 wmm_ac_vo_cwmax=3 591 wmm_ac_vo_txop_limit=47 592 wmm_ac_vo_acm=0 593 ieee80211ah=1 594 s1g_prim_chwidth=1 595 s1g_prim_1mhz_chan_index=0 596 s1g_capab=[SHORT-GI-ALL] 597 eapol_key_index_workaround=0 598 own_ip_addr=127.0.0.1 599 channel=28 600 op_class=71 601 #WPA3 / SAE configuration 602 wpa=2 603 wpa_key_mgmt=SAE 604 ieee80211w=2 605 sae_pwe=2 606 rsn_pairwise=CCMP 607 sae_password=HalowDemo123 608 EOF 609 #Start the AP with configuration in background. 610 #For quick (foreground) debugging, remove the -B flag 611 hostapd_s1g ./hostapd_s1g_wpa3.conf -B 612 #Configure static IP 613 ifconfig wlan0 192.168.1.1 614 #Start iperf3 server for connection testing 615 iperf3 -s 616 }}} 617 * STA: 618 {{{#!bash 619 #wpa_passphrase_s1g is only to create WPA2 configurations; create conf manually 620 cat << EOF > wpa_supplicant_s1g_wpa3.conf 621 update_config=1 622 623 pmf=2 624 sae_pwe=1 625 network={ 626 ssid="HaLow-WPA3" 627 key_mgmt=SAE 628 pairwise=CCMP 629 psk="strongpassword123" 630 } 631 EOF 632 633 #Ensure interface is up 634 ifconfig wlan0 up 635 #Start wpa_supplicant_s1g, send to background (replace & with -d for debug) 636 wpa_supplicant_s1g -i wlan0 -c ./wpa_supplicant_s1g_wpa3.conf & 637 #Configure static IP, as dhcp is not present in example. 638 ifconfig wlan0 192.168.1.128 639 iperf3 -c 192.168.1.1 640 }}} 641 642 643 * 802.11s Mesh using WPA3: 544 644 {{{#!bash 545 645 cat << EOF > wpa_supplicant_s1g.conf … … 551 651 mesh_fwding=1 552 652 network={ 553 ssid="HaLow-WPA3 "653 ssid="HaLow-WPA3-Mesh" 554 654 key_mgmt=SAE 555 655 mode=5 … … 567 667 } 568 668 EOF 669 ifconfig wlan0 up 569 670 wpa_supplicant_s1g -iwlan0 -c wpa_supplicant_s1g.conf & 570 671 }}} 672 673 * Note: wpa_supplicant_s1g automatically configures the interface type from 'managed' to 'mesh point' when configured for mesh. It is cleaner practice and recommended for production systems, to setup the interface as a mesh point explicitly. 674 {{{#!bash 675 #optional: delete wlan0 interface 676 iw dev wlan0 del 677 iw phy phy0 interface add mesh0 type mp 678 679 #morse_cli sanity check 680 #morse_cli requires interface to talk to the driver; ensure interface is up 681 ifconfig mesh0 up 682 #morse_cli defaults to wlan0, so to use it we need to manually state -i mesh0 683 morse_cli -i mesh0 version 684 }}} 685 571 686 572 687 More information on mesh and 802.11s can be found on our [https://trac.gateworks.com/wiki/wireless/wifi/mesh mesh networks] wiki page.