mirror of
https://github.com/openwrt/openwrt.git
synced 2026-07-19 22:51:49 +04:00
d9c765286d
cell.he was only populated when the 6 GHz Operation Information sub-element was parsed, making HE invisible to scan results on 2.4/5 GHz bands. Fix this by setting cell.he unconditionally when HE Operation IE (Extension Element 36) is seen. Gate 6 GHz channel width parsing on cell.band rather than the HE Operation Parameters bit field, which proved unreliable on MediaTek firmware. Fix flag byte offsets in the 6 GHz path: VHT Oper Info Present (BIT 14) and Co-Hosted BSS (BIT 15) are in byte 1 of he_oper_params which maps to ext[2], not ext[1]. For non-6GHz bands, derive channel width from the already-parsed VHT/HT Operation IEs instead of leaving cell.he empty. Signed-off-by: John Crispin <john@phrozen.org>