Changes between Version 16 and Version 17 of expansion/gw16167


Ignore:
Timestamp:
01/22/2026 09:22:14 PM (22 hours ago)
Author:
Tim Harvey
Comment:

updated config examples

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16167

    v16 v17  
    578578The changes made by !MorseMicro to hostap add a number of parameters to hostapd.conf:
    579579 * ieee80211ah: IEEE 802.11ah (S1G) supported
    580  * s1g_prim_chwidth: Sub-1 GHz primary channel bandwidth
    581  * s1g_prim_1mhz_chan_index: Sub-1 GHz primary 1MHz channel index
     580 * s1g_prim_chwidth: Sub-1 GHz primary channel (used for control/management signalling) within the wider bonded channel: 0=1Mhz, 1=2MHz
     581 * s1g_prim_1mhz_chan_index: Sub-1 GHz primary 1MHz channel index used to refine the selection of the primary channel within the the operating channel by s1g_prim_chwidth: 0 for 1Mhz, 0-1 for 2Mhz, 0-3 for 4Mhz, 0-7 for 8MHz
    582582 * s1g_capab: S1G capabilities (list of flags)
    583583 * s1g_traveling_pilots: Sub-1 Ghz traveling pilots
     
    589589
    590590For documentation on these refer to the code:
    591  * [https://github.com/MorseMicro/hostap/blob/v1.14/hostapd/hostapd_s1g.conf hostapd_s1g.conf]
    592  * [https://github.com/MorseMicro/hostap/blob/v1.14/hostapd_s1g_configuration.md hostapd_s1g_configuration]
     591 * [https://github.com/MorseMicro/hostap/blob/v1.15/hostapd/hostapd_s1g.conf hostapd_s1g.conf]
     592 * [https://github.com/MorseMicro/hostap/blob/v1.15/hostapd_s1g_configuration.md hostapd_s1g_configuration]
    593593
    594594
     
    611611hw_mode=a
    612612beacon_int=100
    613 dtim_period=2
     613dtim_period=10
    614614max_num_sta=255
    615615rts_threshold=-1
     
    640640wmm_ac_vo_acm=0
    641641ieee80211ah=1
    642 s1g_prim_chwidth=1
    643 s1g_prim_1mhz_chan_index=0
    644642s1g_capab=[SHORT-GI-ALL]
    645643eapol_key_index_workaround=0
    646644own_ip_addr=127.0.0.1
    647 #918.5MHz@1
     645# 1MHz@918.5MHz
    648646#channel=33
    649647#op_class=68
    650 #907MHz@2
     648# 2MHz@907MHz
    651649#channel=10
    652650#op_class=69
    653 #922Mhz@4
     651# 4MHz@922MHz
    654652#channel=40
    655653#op_class=70
    656 #916MHz@8
     654# 8MHz@916MHz
    657655channel=28
    658656op_class=71
     657s1g_prim_chwidth=1
     658s1g_prim_1mhz_chan_index=0
    659659# WPA2 security
    660660wpa=2
     
    671671{{{#!bash
    672672#wpa_passphrase generates WPA2 wpa_supplicant configuration
    673 wpa_passphrase_s1g HaLow-WPA2 strongpassword123 > wpa_supplicant_s1g.conf
     673wpa_passphrase_s1g HaLow-WPA2 strongpassword123 > wpa_supplicant_s1g_wpa2.conf
    674674#ensure wlan0 interface is up
    675675ifconfig wlan0 up
    676676#Start wpa_supplicant_s1g, send to background (replace & with -d for debug)
    677 wpa_supplicant_s1g -i wlan0 -c ./wpa_supplicant_s1g.conf &
     677wpa_supplicant_s1g -i wlan0 -c ./wpa_supplicant_s1g_wpa2.conf &
    678678#assign static IP; DHCP is not part of this example
    679679ifconfig wlan0 192.168.1.128
     
    696696hw_mode=a
    697697beacon_int=100
    698 dtim_period=2
     698dtim_period=10
    699699max_num_sta=255
    700700rts_threshold=-1
     
    725725wmm_ac_vo_acm=0
    726726ieee80211ah=1
    727 s1g_prim_chwidth=1
    728 s1g_prim_1mhz_chan_index=0
    729727s1g_capab=[SHORT-GI-ALL]
    730728eapol_key_index_workaround=0
    731729own_ip_addr=127.0.0.1
    732 channel=28
    733 op_class=71
    734 #WPA3 / SAE configuration
     730#s1g_prim_chwidth=0
     731#s1g_prim_1mhz_chan_index=0
     732# 1MHz@918.5MHz
     733#channel=33
     734#op_class=68
     735# 2MHz@907MHz
     736#channel=10
     737#op_class=69
     738# 4MHz@922MHz
     739#channel=40
     740#op_class=70
     741# 8MHz@916MHz
     742#channel=28
     743#op_class=71
     744# WPA3 / SAE configuration
    735745wpa=2
    736746wpa_key_mgmt=SAE
     
    776786 * 802.11s Mesh using WPA3:
    777787{{{#!bash
    778 cat << EOF > wpa_supplicant_s1g.conf
     788cat << EOF > wpa_supplicant_s1g_mesh_wpa3.conf
    779789country=US
    780790ctrl_interface=/var/run/wpa_supplicant_s1g
     
    787797        key_mgmt=SAE
    788798        mode=5
    789         # 8MHz width at 916MHz
     799        s1g_prim_chwidth=0
     800        s1g_prim_1mhz_chan_index=0
     801        # 1MHz@918.5MHz
     802        #channel=33
     803        #op_class=68
     804        # 2MHz@907MHz
     805        #channel=10
     806        #op_class=69
     807        # 4MHz@922Mhz
     808        #channel=40
     809        #op_class=70
     810        # 8MHz@916MHz
    790811        channel=28
    791812        op_class=71
    792813        country="US"
    793         s1g_prim_chwidth=1
    794         s1g_prim_1mhz_chan_index=3
    795814        mesh_rssi_threshold=-85
    796815        sae_password="strongpassword123"
     
    798817        ieee80211w=2
    799818        beacon_int=1000
    800         # 1.16.4 wpa_supplicant_s1g needs dtim_period=1
    801         dtim_period=1
     819        # 1.16.4 wpa_supplicant/mesh.c needs this set to 1
     820        dtim_period=1
    802821}
     822
    803823EOF
    804824ifconfig wlan0 up
    805 wpa_supplicant_s1g -iwlan0 -c wpa_supplicant_s1g.conf &
     825wpa_supplicant_s1g -iwlan0 -c wpa_supplicant_s1g_mesh_wpa3.conf &
    806826}}}
    807827