073fe6386c51b251ab9fed7560a8f70cbd261e9e
[openwrt.git] / package / mac80211 / patches / 570-mac80211_get_freq.patch
1 --- a/net/mac80211/cfg.c
2 +++ b/net/mac80211/cfg.c
3 @@ -1154,6 +1154,18 @@ static int ieee80211_set_txq_params(stru
4 return 0;
5 }
6
7 +static int ieee80211_get_oper_channel(struct wiphy *wiphy,
8 + struct ieee80211_channel **chan,
9 + enum nl80211_channel_type *channel_type)
10 +{
11 + struct ieee80211_local *local = wiphy_priv(wiphy);
12 +
13 + *chan = local->oper_channel;
14 + *channel_type = local->oper_channel_type;
15 +
16 + return 0;
17 +}
18 +
19 static int ieee80211_set_channel(struct wiphy *wiphy,
20 struct ieee80211_channel *chan,
21 enum nl80211_channel_type channel_type)
22 @@ -1494,6 +1506,7 @@ struct cfg80211_ops mac80211_config_ops
23 #endif
24 .change_bss = ieee80211_change_bss,
25 .set_txq_params = ieee80211_set_txq_params,
26 + .get_channel = ieee80211_get_oper_channel,
27 .set_channel = ieee80211_set_channel,
28 .suspend = ieee80211_suspend,
29 .resume = ieee80211_resume,
This page took 0.040625 seconds and 3 git commands to generate.