History

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.

Ayala Beker committed 10 years ago

Commit a5a9dcf1 parent a442b765 files · +111 −2Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+9−2
@@ -862,6 +862,10 @@ · 861 unmodified lines
862862 * the response to this command.
863863 * Look at %NL80211_ATTR_SOCKET_OWNER as well.
864864 * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie.
865+ * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN configuration. NAN
866+ * must be operational (%NL80211_CMD_START_NAN was executed).
867+ * It must contain at least one of the following attributes:
868+ * %NL80211_ATTR_NAN_MASTER_PREF, %NL80211_ATTR_NAN_DUAL.
865869 *
866870 * @NL80211_CMD_MAX: highest used command number
867871 * @__NL80211_CMD_AFTER_LAST: internal use
@@ -1055,6 +1059,7 @@ enum nl80211_commands { · 187 unmodified lines
10551059 NL80211_CMD_STOP_NAN,
10561060 NL80211_CMD_ADD_NAN_FUNCTION,
10571061 NL80211_CMD_DEL_NAN_FUNCTION,
1062+ NL80211_CMD_CHANGE_NAN_CONFIG,
10581063
10591064 /* add new commands above here */
10601065
@@ -1910,12 +1915,14 @@ enum nl80211_commands { · 849 unmodified lines
19101915 * used to pull the stored data for mesh peer in power save state.
19111916 *
19121917 * @NL80211_ATTR_NAN_MASTER_PREF: the master preference to be used by
1913− * %NL80211_CMD_START_NAN. Its type is u8 and it can't be 0.
1918+ * %NL80211_CMD_START_NAN and optionally with
1919+ * %NL80211_CMD_CHANGE_NAN_CONFIG. Its type is u8 and it can't be 0.
19141920 * Also, values 1 and 255 are reserved for certification purposes and
19151921 * should not be used during a normal device operation.
19161922 * @NL80211_ATTR_NAN_DUAL: NAN dual band operation config (see
19171923 * &enum nl80211_nan_dual_band_conf). This attribute is used with
1918− * %NL80211_CMD_START_NAN.
1924+ * %NL80211_CMD_START_NAN and optionally with
1925+ * %NL80211_CMD_CHANGE_NAN_CONFIG.
19191926 * @NL80211_ATTR_NAN_FUNC: a function that can be added to NAN. See
19201927 * &enum nl80211_nan_func_attributes for description of this nested
19211928 * attribute.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t