Hassio-Access-Point
Hassio-Access-Point copied to clipboard
hostapd_config_override does not really override
https://github.com/mattlongman/Hassio-Access-Point/blob/03ef258e24337351eff4553219b51762cd5b1985/hassio-access-point/run.sh#L160
When hostapd_config_override contains a line setting ht_capab= it gets added to the bottom of hostapd.conf and does not really override the already existing line ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40], but gets added at the bottom of the file instead.
I had to override this, since my USB wifi does not have the DSSS_CCK-40 capability, results in hostapd terminating ungracefully as the configured capability is not present.
Hiya! Sorry for the wait ;-;
I don't think overriding the base hostapd config is the right approach for this, as it can have knock-on effects on both stability and security. However, I am investigating automatic detection of ht_capab so that this issue may be resolved.
Thanks for taking care about this!
Just my two cents: I believe auto-detection should be fine in most cases - but in some cases people might want to willingly override the ht_capab configuration option, e.g. for adhering to country-specific regulations. I am not entirely sure if the country_code option will do all the required regulatory things (if used at all).
I'm still triaging, but #62 seems to indicate that there are some issues with country-specific things in hostapd, so I'll investigate further.
If I do get that working, I probably will leave this to be overridden through hostapd_config_override if feasible