ath6kl: Fix wrong regulatory domain disconnection.
authorPierre Le Magourou <plemagourou@aldebaran.com>
Mon, 18 Jul 2016 20:22:19 +0000 (23:22 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 19 Jul 2016 13:22:36 +0000 (16:22 +0300)
commitf3651bae564497250bfde375761554d2e6bb0772
tree32162b4a30782faf942b0c3ebc51e8228e42b696
parent270df8f80d67f257d5b3a94d10b899870f39606a
ath6kl: Fix wrong regulatory domain disconnection.

One minute after a successful connection, the kernel checks if the
frequency and the channel width are well configured for the country we
are in. (regulatory domain)

ath6kl driver was setting the NL80211_CHAN_HT20 channel without checking
for the HT capabilities. (we should have NL80211_CHAN_NO_HT in our
case because the firmware did not support HT)

This patch adds a check on ht_cap.ht_supported in order to create the
channel corresponding to the firmware capabilities.

Signed-off-by: Pierre Le Magourou <plemagourou@aldebaran.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c