From ee7c07ffe83141ec672256049eea48cb71e33281 Mon Sep 17 00:00:00 2001 From: Anand Shekhawat Date: Fri, 22 May 2020 16:01:47 +0530 Subject: net/mac80211: fix an error use of undeclared identifier 'IEEE80211_BAND_60GHZ' https://github.com/shekhawat2/android_kernel_xiaomi_whyred/commit/3d14c7eaba381bc008794291267bb007ad12d1ab#diff-06d67238b2dbb0cb9b2ac8c3f3595319 fix nl80211 --- net/mac80211/mlme.c | 2 +- net/mac80211/tx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index bae631cf549a..0d7d9fcd7b70 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1345,7 +1345,7 @@ ieee80211_find_80211h_pwr_constr(struct ieee80211_sub_if_data *sdata, WARN_ON_ONCE(1); /* fall through */ case NL80211_BAND_2GHZ: - case IEEE80211_BAND_60GHZ: + case NL80211_BAND_60GHZ: chan_increment = 1; break; case NL80211_BAND_5GHZ: diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 5643de6d691c..6a6a778ca3ed 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -164,7 +164,7 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, if (r->flags & IEEE80211_RATE_MANDATORY_A) mrate = r->bitrate; break; - case IEEE80211_BAND_60GHZ: + case NL80211_BAND_60GHZ: /* TODO, for now fall through */ case NUM_NL80211_BANDS: WARN_ON(1); -- cgit v1.2.3