From: Ivan Priest Date: Fri, 15 Jun 2018 17:02:02 +0000 (+0100) Subject: [9610] wlbt: fix warning in nl80211 channel enum X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b13cf417ba11bf18677a6f46dfdec6699e290930;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9610] wlbt: fix warning in nl80211 channel enum Clang exposed incorrect enum being used (values are the same). Change-Id: I0a90bda5835843319f718d61378ca30d4e912371 SCSC-Bug-Id: SSB-40929 Signed-off-by: Ivan Priest --- diff --git a/drivers/net/wireless/scsc/ioctl.c b/drivers/net/wireless/scsc/ioctl.c index 82784ce37070..bd424aa0c3a8 100755 --- a/drivers/net/wireless/scsc/ioctl.c +++ b/drivers/net/wireless/scsc/ioctl.c @@ -384,7 +384,7 @@ static ssize_t slsi_p2p_ecsa(struct net_device *dev, char *command) SLSI_DBG1(sdev, SLSI_CFG80211, "p2p ecsa_params chan_type = %d\n", chan_type); if (channel == 165 && bandwidth != 20) { bandwidth = 20; - chan_type = NL80211_CHAN_WIDTH_20; + chan_type = NL80211_CHAN_HT20; SLSI_DBG3(sdev, SLSI_CFG80211, "downgrade bandwidth [from:%d to:20] on chan 165\n", bandwidth); } cfg80211_chandef_create(&chandef, chandef.chan, chan_type);