From: Johannes Berg <johannes.berg@xxxxxxxxx> It should return bool, not int. The function even does return true/false. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- include/net/cfg80211.h | 6 +++--- net/wireless/chan.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/include/net/cfg80211.h 2012-05-10 20:43:44.000000000 +0200 +++ b/include/net/cfg80211.h 2012-05-10 20:44:39.000000000 +0200 @@ -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 --- a/net/wireless/chan.c 2012-05-10 20:43:36.000000000 +0200 +++ b/net/wireless/chan.c 2012-05-10 20:43:56.000000000 +0200 @@ -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) { -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html