hostapd: fix VHT80 for encrypted mesh channel settings
authorSven Eckelmann <sven.eckelmann@openmesh.com>
Mon, 14 May 2018 12:45:25 +0000 (14:45 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 14 May 2018 17:07:37 +0000 (19:07 +0200)
The max_oper_chwidth settings was parsed incorrectly for big endian system.
This prevented the system to switch to VHT80 (or VHT160). Instead they were
mapped to:

* HT20:   20MHz
* VHT20:  20MHz
* HT40:   40MHz
* VHT40:  40MHz
* VHT80:  40MHz
* VHT160: 40MHz

This happened because each max_oper_chwidth setting in the config file was
parsed as "0" instead of the actual value.

Fixes: a4322eba2b12 ("hostapd: fix encrypted mesh channel settings")
Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>

No differences found