diff options
| author | Swetha Chikkaboraiah <schikk@codeaurora.org> | 2020-03-02 10:55:12 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-05-21 23:57:59 -0700 |
| commit | 6dbab77b6ddda309f56027f135f1eede33b76c2c (patch) | |
| tree | 1d6202db5896c0cd90b44962678ebfafec402362 /net | |
| parent | 5a6566f225652a01f17f062b4fa91f269e49014a (diff) | |
kernel: Fix build errors with LLVM
This patch intends to fix compilation errors
while building kernel with LLVM toolchain.
Change-Id: I76c4f97d8a0efb44434d54fb07cae23b050d2003
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Diffstat (limited to 'net')
| -rw-r--r-- | net/wireless/nl80211.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index cdaee8598e6b..11a5ae596901 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -3876,8 +3876,10 @@ static int nl80211_start_ap(struct sk_buff *skb, struct genl_info *info) if (err) return err; - err = validate_beacon_tx_rate(rdev, params.chandef.chan->band, - ¶ms.beacon_rate); + err = validate_beacon_tx_rate( + rdev, + (enum nl80211_band)(params.chandef.chan->band), + ¶ms.beacon_rate); if (err) return err; } @@ -6259,7 +6261,10 @@ static int parse_bss_select(struct nlattr *nla, struct wiphy *wiphy, bss_select->behaviour = NL80211_BSS_SELECT_ATTR_RSSI_ADJUST; bss_select->param.adjust.band = adj_param->band; bss_select->param.adjust.delta = adj_param->delta; - if (!is_band_valid(wiphy, bss_select->param.adjust.band)) + if (!is_band_valid( + wiphy, + ((enum ieee80211_band)(bss_select->param.adjust.band)) + )) return -EINVAL; } @@ -6968,7 +6973,10 @@ nl80211_parse_sched_scan(struct wiphy *wiphy, struct wireless_dev *wdev, attrs[NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST]); request->rssi_adjust.band = rssi_adjust->band; request->rssi_adjust.delta = rssi_adjust->delta; - if (!is_band_valid(wiphy, request->rssi_adjust.band)) { + if (!is_band_valid( + wiphy, + (enum ieee80211_band)(request->rssi_adjust.band) + )) { err = -EINVAL; goto out_free; } @@ -9493,8 +9501,10 @@ static int nl80211_join_mesh(struct sk_buff *skb, struct genl_info *info) if (err) return err; - err = validate_beacon_tx_rate(rdev, setup.chandef.chan->band, - &setup.beacon_rate); + err = validate_beacon_tx_rate( + rdev, + (enum nl80211_band)(setup.chandef.chan->band), + &setup.beacon_rate); if (err) return err; } |
