Commit dcc6c2f5 authored by Fabian Frederick's avatar Fabian Frederick Committed by Johannes Berg

cfg80211: fix set but not used warning in nl80211_channel_switch()

radar_detect_width is unused since commit 97dc94f1
("cfg80211: remove channel_switch combination check")
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 4f86ed8f
...@@ -6038,7 +6038,6 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info) ...@@ -6038,7 +6038,6 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info)
* function is called under RTNL lock, so this should not be a problem. * function is called under RTNL lock, so this should not be a problem.
*/ */
static struct nlattr *csa_attrs[NL80211_ATTR_MAX+1]; static struct nlattr *csa_attrs[NL80211_ATTR_MAX+1];
u8 radar_detect_width = 0;
int err; int err;
bool need_new_beacon = false; bool need_new_beacon = false;
int len, i; int len, i;
...@@ -6174,10 +6173,8 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info) ...@@ -6174,10 +6173,8 @@ static int nl80211_channel_switch(struct sk_buff *skb, struct genl_info *info)
if (err < 0) if (err < 0)
return err; return err;
if (err > 0) { if (err > 0)
radar_detect_width = BIT(params.chandef.width);
params.radar_required = true; params.radar_required = true;
}
if (info->attrs[NL80211_ATTR_CH_SWITCH_BLOCK_TX]) if (info->attrs[NL80211_ATTR_CH_SWITCH_BLOCK_TX])
params.block_tx = true; params.block_tx = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment