]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: simplify cfg80211_can_beacon_sec_chan API
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 May 2012 21:50:17 +0000 (23:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:32:16 +0000 (15:32 -0400)
commit615f147a58fb4b385fba87dba0cd9f6c542edc33
treee0a06894e131012e97a892704970ab0b8b1141f2
parentf17e2a382ade2734bdd7e8bcbae4ae7f2a9b6b82
cfg80211: simplify cfg80211_can_beacon_sec_chan API

Change cfg80211_can_beacon_sec_chan() to return true
if there is no secondary channel to simplify all the
current users of it. They all check the channel type
before calling the function because it returns false
if there's no secondary channel.

Also actually document the return value.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
net/mac80211/ibss.c
net/wireless/chan.c