From d486b8c3149bcaa5dc40182f0d640fe1edec2672 Mon Sep 17 00:00:00 2001 From: Sivashankari Madhavan Date: Wed, 4 May 2022 15:09:09 +0530 Subject: [PATCH] Sync the NL green AP changes to hostapd Sync the nl80211 Green ap changes into hostapd nl80211_copy Signed-off-by: Sivashankari Madhavan --- src/drivers/nl80211_copy.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/drivers/nl80211_copy.h b/src/drivers/nl80211_copy.h index 77c7a84..7c51646 100644 --- a/src/drivers/nl80211_copy.h +++ b/src/drivers/nl80211_copy.h @@ -350,11 +350,13 @@ * or %NL80211_ATTR_MAC. * * @NL80211_CMD_GET_BEACON: (not used) - * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface + * @NL80211_CMD_UPDATE_AP: Update AP parameters which can vary at the + * runtime of BSS. change the beacon on an access point interface * using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL * attributes. For drivers that generate the beacon and probe responses - * internally, the following attributes must be provided: %NL80211_ATTR_IE, - * %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP. + * internally, the following attributes must be provided for the + * beacon update: %NL80211_ATTR_IE, %NL80211_ATTR_IE_PROBE_RESP and + * %NL80211_ATTR_IE_ASSOC_RESP. * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, @@ -1217,7 +1219,8 @@ enum nl80211_commands { NL80211_CMD_DEL_KEY, NL80211_CMD_GET_BEACON, - NL80211_CMD_SET_BEACON, + NL80211_CMD_UPDATE_AP, + NL80211_CMD_SET_BEACON = NL80211_CMD_UPDATE_AP, NL80211_CMD_START_AP, NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP, NL80211_CMD_STOP_AP, @@ -2597,6 +2600,11 @@ enum nl80211_commands { * association request when used with NL80211_CMD_NEW_STATION). Can be set * only if %NL80211_STA_FLAG_WME is set. * + * @NL80211_ATTR_AP_PS: enable/disable AP power save. + * This attribute type is u8 and valid range is 0 to 1. + * 0 for disable AP power save mode. + * 1 for enable AP power save mode. + * * @NUM_NL80211_ATTR: total number of nl80211_attrs available * @NL80211_ATTR_MAX: highest attribute number currently defined * @__NL80211_ATTR_AFTER_LAST: internal use @@ -3123,7 +3131,8 @@ enum nl80211_attrs { NL80211_ATTR_RU_PUNCT_SUPP_BW, NL80211_ATTR_RU_PUNCT_SUPP_HE, NL80211_ATTR_RU_PUNCT_BITMAP, - + + NL80211_ATTR_AP_PS, /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, -- 2.17.1