Commit 294a20e039a5125b0e88b96e0ee47065ff4e07a5

Authored by Johannes Berg
Committed by John W. Linville
1 parent 3383b5a69d

cfg80211: fix cfg80211_can_beacon_sec_chan prototype

It should return bool, not int. The function even
does return true/false.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

include/net/cfg80211.h
... ... @@ -3365,9 +3365,9 @@
3365 3365 * @chan: main channel
3366 3366 * @channel_type: HT mode
3367 3367 */
3368   -int cfg80211_can_beacon_sec_chan(struct wiphy *wiphy,
3369   - struct ieee80211_channel *chan,
3370   - enum nl80211_channel_type channel_type);
  3368 +bool cfg80211_can_beacon_sec_chan(struct wiphy *wiphy,
  3369 + struct ieee80211_channel *chan,
  3370 + enum nl80211_channel_type channel_type);
3371 3371  
3372 3372 /*
3373 3373 * cfg80211_ch_switch_notify - update wdev channel and notify userspace
... ... @@ -45,7 +45,7 @@
45 45 return chan;
46 46 }
47 47  
48   -int cfg80211_can_beacon_sec_chan(struct wiphy *wiphy,
  48 +bool cfg80211_can_beacon_sec_chan(struct wiphy *wiphy,
49 49 struct ieee80211_channel *chan,
50 50 enum nl80211_channel_type channel_type)
51 51 {