[9610] wlbt: fix warning in nl80211 channel enum
authorIvan Priest <i.priest@samsung.com>
Fri, 15 Jun 2018 17:02:02 +0000 (18:02 +0100)
committerYoungsoo Kim <youngss.kim@samsung.com>
Sat, 16 Jun 2018 01:52:34 +0000 (10:52 +0900)
Clang exposed incorrect enum being used (values
are the same).

Change-Id: I0a90bda5835843319f718d61378ca30d4e912371
SCSC-Bug-Id: SSB-40929
Signed-off-by: Ivan Priest <i.priest@samsung.com>
drivers/net/wireless/scsc/ioctl.c

index 82784ce370701222ca893b20ad2c2ffe00a66859..bd424aa0c3a808e1c88a635753fb1962e23c1abc 100755 (executable)
@@ -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);