ath10k: set vht_nss correctly

mac80211 requires that for VHT rate_idx contains just MCS and vht_nss contains NSS. Otherwise
this triggers a warning in mac80211:

[ 1336.359985] ------------[ cut here ]------------
[ 1336.362103] WARNING: at net/mac80211/rx.c:3279 ieee80211_rx+0x7aa/0x830 [mac80211]()
[ 1336.364520] Hardware name: HP ProBook 6540b
[ 1336.366943] Rate marked as a VHT rate but data is invalid: MCS: 27, NSS: 0

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: change chan_to_phymode() use chandef

That's more logical instead of passing chandef fields one at a time.

Also change ath10k_update_channel_list to hardcode the band directly.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: remove band_center_freq()

We can take the frequency directly from struct
cfg80211_chan_def.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: include all management frames to ATH10K_DBG_BEACON

Change ATH10K_DBG_BEACON to include all management frame tx
and rx functionality. That way it doesn't spam rest of
wmi debug logs.

Rename the flag to ATH10K_DBG_MGMT to better reflect
the functionality.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: add ATH10K_DBG_DATA

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: preliminary VHT support

Adds preliminary VHT (802.11ac) support to ath10k.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>