* [PATCH] cfg80211: fix cfg80211_can_beacon_sec_chan prototype
@ 2012-05-10 19:25 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2012-05-10 19:25 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
From: Johannes Berg <johannes.berg@intel.com>
It should return bool, not int. The function even
does return true/false.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-10 19:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 19:25 [PATCH] cfg80211: fix cfg80211_can_beacon_sec_chan prototype Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).