cfg80211: clean up mesh plink station change API
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Feb 2013 22:27:01 +0000 (23:27 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:35:37 +0000 (16:35 +0100)
commitf8bacc210408f7a2a182f184a9fa1475b8a67440
tree714bcf6b0240c622f9affb6ff7df61b4f9dc87a9
parentc0f3a317f2f0e51ad2f8809c83b137958b385c7f
cfg80211: clean up mesh plink station change API

Make the ability to leave the plink_state unchanged not use a
magic -1 variable that isn't in the enum, but an explicit change
flag; reject invalid plink states or actions and move the needed
constants for plink actions to the right header file. Also
reject plink_state changes for non-mesh interfaces.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/mac80211/cfg.c
net/wireless/nl80211.c