cfg80211: fix cfg80211_can_beacon_sec_chan prototype
Johannes Berg
maintainerPATCH 1/1 cfg80211: fix cfg80211_can_beacon_sec_chan prototype
From: Johannes Berg <[email protected]>
It should return bool, not int. The function even
does return true/false.
Signed-off-by Johannes Berg <[email protected]>
--- include/net/cfg80211.h | 6 +++--- net/wireless/chan.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
include/net/cfg80211.h +3 -3
@@ -3365,9 +3365,9 @@ void cfg80211_report_obss_beacon(struct* @chan: main channel * @channel_type: HT mode */ -int cfg80211_can_beacon_sec_chan (struct wiphy *wiphy, -struct ieee80211_channel *chan, -enum nl80211_channel_type channel_type); +bool cfg80211_can_beacon_sec_chan (struct wiphy *wiphy, +struct ieee80211_channel *chan, +enum nl80211_channel_type channel_type);/* * cfg80211_ch_switch_notify - update wdev channel and notify userspace
net/wireless/chan.c +1 -1
@@ -45,7 +45,7 @@ rdev_freq_to_chan(struct cfg80211_registreturn chan; } -int cfg80211_can_beacon_sec_chan (struct wiphy *wiphy, +bool cfg80211_can_beacon_sec_chan (struct wiphy *wiphy,struct ieee80211_channel *chan,enum nl80211_channel_type channel_type) {