cfg80211: allow the user space to change current NAN configuration
Some NAN configuration paramaters may change during the operation of the NAN device. For example, a user may want to update master preference value when the device gets plugged/unplugged to the power. Add API that allows to do so. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
a442b761b2
commit
a5a9dcf291
@@ -862,6 +862,10 @@
|
||||
* the response to this command.
|
||||
* Look at %NL80211_ATTR_SOCKET_OWNER as well.
|
||||
* @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie.
|
||||
* @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN configuration. NAN
|
||||
* must be operational (%NL80211_CMD_START_NAN was executed).
|
||||
* It must contain at least one of the following attributes:
|
||||
* %NL80211_ATTR_NAN_MASTER_PREF, %NL80211_ATTR_NAN_DUAL.
|
||||
*
|
||||
* @NL80211_CMD_MAX: highest used command number
|
||||
* @__NL80211_CMD_AFTER_LAST: internal use
|
||||
@@ -1055,6 +1059,7 @@ enum nl80211_commands {
|
||||
NL80211_CMD_STOP_NAN,
|
||||
NL80211_CMD_ADD_NAN_FUNCTION,
|
||||
NL80211_CMD_DEL_NAN_FUNCTION,
|
||||
NL80211_CMD_CHANGE_NAN_CONFIG,
|
||||
|
||||
/* add new commands above here */
|
||||
|
||||
@@ -1910,12 +1915,14 @@ enum nl80211_commands {
|
||||
* used to pull the stored data for mesh peer in power save state.
|
||||
*
|
||||
* @NL80211_ATTR_NAN_MASTER_PREF: the master preference to be used by
|
||||
* %NL80211_CMD_START_NAN. Its type is u8 and it can't be 0.
|
||||
* %NL80211_CMD_START_NAN and optionally with
|
||||
* %NL80211_CMD_CHANGE_NAN_CONFIG. Its type is u8 and it can't be 0.
|
||||
* Also, values 1 and 255 are reserved for certification purposes and
|
||||
* should not be used during a normal device operation.
|
||||
* @NL80211_ATTR_NAN_DUAL: NAN dual band operation config (see
|
||||
* &enum nl80211_nan_dual_band_conf). This attribute is used with
|
||||
* %NL80211_CMD_START_NAN.
|
||||
* %NL80211_CMD_START_NAN and optionally with
|
||||
* %NL80211_CMD_CHANGE_NAN_CONFIG.
|
||||
* @NL80211_ATTR_NAN_FUNC: a function that can be added to NAN. See
|
||||
* &enum nl80211_nan_func_attributes for description of this nested
|
||||
* attribute.
|
||||
|
Reference in New Issue
Block a user