80211-anarchy/0001-mac80211-Ignore-beacon...

37 lines
1.1 KiB
Diff

From bf1e42ac2cd29a3aac82ef610fd1713baaa7c725 Mon Sep 17 00:00:00 2001
From: haskal <haskal@bepis.xyz>
Date: Sun, 3 Nov 2019 01:38:46 +0000
Subject: [PATCH] mac80211: Ignore beacon-advertised txpower
This patch disables checking for AP-advertised txpower in received
beacon frames. This allows the currently configured radio txpower to
remain the same.
---
net/mac80211/mlme.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index a826f9ccc03f..826877bef6ef 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1452,6 +1452,8 @@ ieee80211_find_80211h_pwr_constr(struct ieee80211_sub_if_data *sdata,
const u8 *pwr_constr_elem,
int *chan_pwr, int *pwr_reduction)
{
+ return false;
+#if 0
struct ieee80211_country_ie_triplet *triplet;
int chan = ieee80211_frequency_to_channel(channel->center_freq);
int i, chan_increment;
@@ -1505,6 +1507,7 @@ ieee80211_find_80211h_pwr_constr(struct ieee80211_sub_if_data *sdata,
*pwr_reduction = 0;
return have_chan_pwr;
+#endif
}
static void ieee80211_find_cisco_dtpc(struct ieee80211_sub_if_data *sdata,
--
2.23.0