Skip to contentSkip to conversation

cfg80211: fix cfg80211_can_beacon_sec_chan prototype

PATCH New Johannes Berg 1 participant 1 message May 10, 2012 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 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.

---
 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_regist
 	return 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)
 {