On 6/23/2025 3:54 AM, Andrei Otcheretianski wrote:
+ * @low_band_cfg: configuration for the low band.
+ * @high_band_cfg: configuration for the high band.
+ * @enable_scan: Flag to enable or disable scanning on 5 GHz band.
s/enable_scan/enable_hb_scan
+ * @extra_nan_attrs: pointer to additional NAN attributes.
+ * @extra_nan_attrs_len: length of the additional NAN attributes.
+ * @vendor_elems: pointer to vendor-specific elements.
+ * @vendor_elems_len: length of the vendor-specific elements.
Can you please review if the following additional parameters would be
required for the drivers to start nan or change the config.
* @max_publish_sids_in_beacon: This indicates maximum number of service
IDs that can be accommodated in the Service ID List attribute in a NAN
beacon.
* @max_subscribe_sids_in_beacon: This indicates maximum number of
service IDs that can be accommodated in the Subscribe Service ID List
attribute in a NAN beacon.
* @hop_limit: Maximum number of hops that is allowed to join a cluster.
Value 0 indicates no such restriction.
* @rssi_window_size: Moving average of RSSI to decide NAN role switch.
* @nss: No of TX and RX chains to be used. This can be reconfigured
using change configs for any change in power setting.
* @enable_dw_early_termination: Flag to enable/disable early DW
termination. The device can decide to move out of the DW before the
dwell time if this is enabled.
*/
struct cfg80211_nan_conf {
u8 master_pref;
u8 bands;
+ u16 cluster_id;
+ u16 scan_period;
+ u16 scan_dwell_time;
+ u16 discovery_beacon_interval;
+ bool enable_dw_notification;
+ struct cfg80211_nan_band_config low_band_cfg;
+ struct cfg80211_nan_band_config high_band_cfg;
+ bool enable_hb_scan;
+ u8 *extra_nan_attrs;
+ size_t extra_nan_attrs_len;
+ u8 *vendor_elems;
+ size_t vendor_elems_len;
u8 max_publish_sids_in_beacon;
u8 max_subscribe_sids_in_beacon;
u8 hop_limit;
u16 rssi_window_size;
u8 nss;
bool enable_dw_early_termination;
};
/**
@@ -3779,10 +3828,32 @@ struct cfg80211_nan_conf {
*
* @CFG80211_NAN_CONF_CHANGED_PREF: master preference
* @CFG80211_NAN_CONF_CHANGED_BANDS: operating bands
+ * @CFG80211_NAN_CONF_CHANGED_CLUSTER_ID: cluster ID
+ * @CFG80211_NAN_CONF_CHANGED_SCAN_PERIOD: scan period
+ * @CFG80211_NAN_CONF_CHANGED_SCAN_DWELL_TIME: scan dwell time