]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix mesh advertisement
authorJohannes Berg <johannes.berg@intel.com>
Wed, 25 Aug 2010 12:34:01 +0000 (14:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:34:56 +0000 (14:34 -0400)
commitc5a5f3d6469f3798b2cfb26819f958b3319ab12f
tree4d3397d83cb533ba4fa8dd47b884305c877b01d7
parent99faaea5c6d356e472c09cf3d45251da066d78eb
mac80211: fix mesh advertisement

When a mac80211-based driver advertises mesh mode
support, this will be advertised to userspace.
However, if mac80211 was compiled without mesh
support, then that won't actually be true. Fix
this by removing the bit for mesh if mesh isn't
compiled in.

Since this synchronizes what we advertise to
cfg80211 and actually support, it means we can
now rely on cfg80211's interface type checks
and need not check again in mac80211.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/main.c