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
92 stars 66 forks source link

make ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] optional in hostapd.conf #78

Open radkokeves opened 5 months ago

radkokeves commented 5 months ago

Hi there,

please make ht_capab [DSSS_CCK-40] optional, some older cards don't support it

thank you

mattlongman commented 5 months ago

Hi there,

please make ht_capab [DSSS_CCK-40] optional, some older cards don't support it

thank you

The default ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] can be overwritten using the hostapd_config_override option.

This option with ht_capab=[HT40][SHORT-GI-20] would append this to the hostapd config file, and so it would ignore the previous ht_capab entry.

radkokeves commented 5 months ago

Tried it, overwrite doesn't work

mattlongman commented 5 months ago

Tried it, overwrite doesn't work

Ok, thanks. Could you share your config please?

radkokeves commented 5 months ago

ssid: xxx wpa_passphrase: xxx. channel: 5 address: 192.168.88.1 netmask: 255.255.255.0 broadcast: 192.168.88.255 interface: wlp1s0u1u3 hide_ssid: false dhcp: 1 dhcp_start_addr: 192.168.88.10 dhcp_end_addr: 192.168.88.30 allow_mac_addresses: - E8:88:cxxxe:1d deny_mac_addresses: [] debug: 0 hostapd_config_override: [] client_internet_access: false client_dns_override: [] dnsmasq_config_override: []

radkokeves commented 5 months ago

i tried hostapd_config_override: - t_capab=[HT40][SHORT-GI-20]

but without success

i ended up cloning your addon localy without ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] in hostapd.config

gentoo-root commented 3 months ago

Same issue. Adding an override:

hostapd_config_override:
  - ht_capab=[HT40][SHORT-GI-20]

doesn't have an effect:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Starting Hass.io Access Point Addon
Warning: nmcli (1.46.0) and NetworkManager (1.44.2) versions don't match. Restarting NetworkManager is advised.
# Custom hostapd config options:
Add to hostapd.conf: ht_capab=[HT40][SHORT-GI-20]
Warning: nmcli (1.46.0) and NetworkManager (1.44.2) versions don't match. Restarting NetworkManager is advised.
Add DNS: dhcp-option=6,xxx.xxx.xxx.xxx
# Custom dnsmasq config options:
<...>
rfkill: Cannot open RFKILL control device
Driver does not support configured HT capability [DSSS_CCK-40]
wlp1s0u1u4: interface state UNINITIALIZED->DISABLED
wlp1s0u1u4: AP-DISABLED 
wlp1s0u1u4: Unable to setup interface.
wlp1s0u1u4: interface state DISABLED->DISABLED
wlp1s0u1u4: AP-DISABLED 
wlp1s0u1u4: CTRL-EVENT-TERMINATING 
hostapd_free_hapd_data: Interface wlp1s0u1u4 wasn't started
nl80211: deinit ifname=wlp1s0u1u4 disabled_11b_rates=0
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Could you implement a way to change ht_capab?

ValentynKhylchuk commented 3 months ago

Hi. I have same issue on Orange Pi Zero 3. hostapd_config_override does not help. The only way to fix it for me was to fork this repo and change that configuration line manually.