wireless: use OR operation to set wiphy features
authorJohannes Berg <johannes.berg@intel.com>
Fri, 12 Oct 2012 08:55:53 +0000 (10:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 18 Oct 2012 07:01:52 +0000 (09:01 +0200)
commitb292219fa5061e2657ecf518b48426913d0ddae6
tree5e08aeaca0c5793c92febcb84ea581e54dcd6124
parent46856bbf0f0412c12e9674df68822cb531d49327
wireless: use OR operation to set wiphy features

The next patch will introduce a flag that is set
by default in cfg80211 so drivers and mac80211
need to use |= to set features they have so that
they don't clear the already-set feature.

We could set the flag in wiphy_register() instead
of wiphy_new() to avoid this patch, but then the
drivers couldn't *unset* flags they don't want to
use even though the implementation is generic.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/mwifiex/cfg80211.c
net/mac80211/main.c