mac80211: simplify HT40 handling, derive lower/upper channel mode automatically from channel index

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40680 3c298f89-4303-0410-b956-a3cf2f4a3e73
mac80211: disable 802.11n support if htmode is not set to HT* or VHT*

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40681 3c298f89-4303-0410-b956-a3cf2f4a3e73
mac80211: clean up ht capability handling, drop the use of the ht_capab list, use individual variables instead

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40682 3c298f89-4303-0410-b956-a3cf2f4a3e73
mac80211: clean up vht capability processing

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40683 3c298f89-4303-0410-b956-a3cf2f4a3e73
mac80211: add automatic ht40 mode handling for 2.4 ghz

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40684 3c298f89-4303-0410-b956-a3cf2f4a3e73
mac80211: force upper channel for HT40 when autochannel is enabled

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40685 3c298f89-4303-0410-b956-a3cf2f4a3e73