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
@@ -2326,6 +2326,18 @@ struct cfg80211_nan_conf {
|
||||
u8 dual;
|
||||
};
|
||||
|
||||
/**
|
||||
* enum cfg80211_nan_conf_changes - indicates changed fields in NAN
|
||||
* configuration
|
||||
*
|
||||
* @CFG80211_NAN_CONF_CHANGED_PREF: master preference
|
||||
* @CFG80211_NAN_CONF_CHANGED_DUAL: dual band operation
|
||||
*/
|
||||
enum cfg80211_nan_conf_changes {
|
||||
CFG80211_NAN_CONF_CHANGED_PREF = BIT(0),
|
||||
CFG80211_NAN_CONF_CHANGED_DUAL = BIT(1),
|
||||
};
|
||||
|
||||
/**
|
||||
* struct cfg80211_nan_func_filter - a NAN function Rx / Tx filter
|
||||
*
|
||||
@@ -2691,6 +2703,9 @@ struct cfg80211_nan_func {
|
||||
* On success the driver should assign an instance_id in the
|
||||
* provided @nan_func.
|
||||
* @del_nan_func: Delete a NAN function.
|
||||
* @nan_change_conf: changes NAN configuration. The changed parameters must
|
||||
* be specified in @changes (using &enum cfg80211_nan_conf_changes);
|
||||
* All other parameters must be ignored.
|
||||
*/
|
||||
struct cfg80211_ops {
|
||||
int (*suspend)(struct wiphy *wiphy, struct cfg80211_wowlan *wow);
|
||||
@@ -2963,6 +2978,10 @@ struct cfg80211_ops {
|
||||
struct cfg80211_nan_func *nan_func);
|
||||
void (*del_nan_func)(struct wiphy *wiphy, struct wireless_dev *wdev,
|
||||
u64 cookie);
|
||||
int (*nan_change_conf)(struct wiphy *wiphy,
|
||||
struct wireless_dev *wdev,
|
||||
struct cfg80211_nan_conf *conf,
|
||||
u32 changes);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user