AP: Configure ht_capab based on channel width under 11ac mode

In most common 11ac test cases, APUT's control channel is 36 or 44, so
there was no issue with hardcoded ht_capab=[HT40+], but it is possible
for APUT's control channel to use values like 64 (HT80), 140 (HT20), and
165 (HT20), which are not valid combinations with ht_capab=[HT40+].

Set the ht_capab flags based on the configured channel similarly to how
this was already done for the 802.11n case in hostapd.conf construction.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
1 file changed