[LEDE-DEV] [PATCH] hostapd: explicitly set beacon interval for wpa_supplicant

Sven Eckelmann sven.eckelmann at openmesh.com
Tue Nov 7 04:54:16 PST 2017


On Dienstag, 7. November 2017 13:37:48 CET Matthias Schiffer wrote:
[...]
> > This patch was only tested with LEDE 17.01.4. And only in sta and mesh mode.
[...]
> > -	local beacon_int brates mrate
> > +
> 
> This change is already in master, see
> https://git.lede-project.org/?p=source.git;a=commitdiff;h=5e481881d7abd814abbf40a046be90cbaf835e72
>
> Let's just backport this trivial change to lede-17.01.

Ok, I am fine with that

> >  	[ -n "$bssid" ] && append network_data "bssid=$bssid" "$N$T"
> > +	[ -n "$beacon_int" ] && append network_data "beacon_int=$beacon_int" "$N$T"
> 
> 1a16cb9c67f0d2c530914aec31c721b75f03a908 moved setting beacon_int from
> wpa_supplicant_add_network() to hostapd_prepare_device_config(). Does
> encrypted IBSS/mesh setup somehow not use hostapd_prepare_device_config()?
> How do the resulting hostapd.conf look at the moment?

    driver=nl80211
    logger_syslog=127
    logger_syslog_level=2
    logger_stdout=127
    logger_stdout_level=2
    hw_mode=a
    beacon_int=100
    channel=36
    
    
    ieee80211n=1
    ht_coex=0
    ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40]
    vht_oper_chwidth=1
    vht_oper_centr_freq_seg0_idx=42
    ieee80211ac=1
    vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]
    
    interface=wlan0-1
    ctrl_interface=/var/run/hostapd
    ap_isolate=1
    disassoc_low_ack=1
    preamble=1
    wmm_enabled=1
    ignore_broadcast_ssid=0
    uapsd_advertisement_enabled=1
    auth_algs=1
    wpa=0
    ssid=LEDE5
    bridge=br-lan
    bssid=ac:86:74:61:4c:30

So beacon_int is set. But this is how the wpa_supplicant config looks without 
this line:

    network={
    
            ssid="test2"
            key_mgmt=SAE
            mode=5
            frequency=2462
            psk="9f0a965af38f2d0a13b66d8b46ab962c"
            mcast_rate=18
    }

The line

    [ -n "$beacon_int" ] && append network_data "beacon_int=$beacon_int" "$N$T"

in wpa_supplicant_add_network is required to also add the beacon_int= setting.

Kind regards,
	Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20171107/b0adda51/attachment.sig>


More information about the Lede-dev mailing list