mattlongman / Hassio-Access-Point

Hass.io addon to let you create a WiFi access point, perfect for using WiFi devices on off-grid installations.
MIT License
81 stars 62 forks source link

hostapd.conf request #2

Closed mineroloco55 closed 3 years ago

mineroloco55 commented 3 years ago

Would it be possible to include some of the hostapd options :? hw_mode = g wpa = 2 wpa_key_mgmt = WPA-PSK wpa_pairwise = TKIP rsn_pairwise = CCMP ieee80211n = 1 ht_capab = LDPC (these last two are interesting to leave it in "n")

in this way we reduce the width of the channel and gain some stability in the wifi

mattlongman commented 3 years ago

Maybe a dict in the addon config to override hostapd options... I'll look into it.

mattlongman commented 3 years ago

The base config is here, and then run.sh appends other items based on the config. In short, this is what is already in the config:

driver=nl80211
hw_mode=g
ieee80211n=1
wmm_enabled=1
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
logger_stdout=-1
logger_stdout_level=2

I'm not that familiar with hostapd, so I'm happy to defer to anyone who can improve performance. If there's something in the default config that you think should be changed, please submit a PR.

Apart from that, I'm adding another addon config option, to allow you to specify/override hostapd config options.

mattlongman commented 3 years ago

@mineroloco55 - please update the addon and see if that works for you. Add something like this to your config: "hostapd_config_override": ["wpa_pairwise=TKIP", "ht_capab=LDPC"]

mineroloco55 commented 3 years ago

great your override run. how quickly you responded! i run it with

ssid: xxx wpa_passphrase: xxx channel: '1' address: 10.16.18.1 netmask: 255.255.255.192 broadcast: 10.16.18.63 interface: wlan0 hide_ssid: '1' dhcp: '1' dhcp_start_addr: 10.16.18.60 dhcp_end_addr: 10.16.18.62 allow_mac_addresses: [] deny_mac_addresses: [] debug: 0 hostapd_config_override:

mineroloco55 commented 3 years ago

ht_capab = LDPC LDPC not run with the actual driver "hostapd_config_override": ["ht_capab=[40-INTOLERANT][SHORT-GI-20]"] run fine