net: wifi_mgmt: update SSID storage type

Update the storage type of the SSID strings to pointers to the strings,
instead of needing to copy the strings into the struct. This
substantially reduces the parameter struct size.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2023-09-23 17:41:46 +10:00 committed by Carles Cufí
parent 1f3605de21
commit a32e7aaa10

View file

@ -245,7 +245,7 @@ struct wifi_scan_params {
uint16_t dwell_time_passive;
/** Array of SSID strings to scan.
*/
char ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX][WIFI_SSID_MAX_LEN + 1];
const char *ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX];
/** Specifies the maximum number of scan results to return. These results would be the
* BSSIDS with the best RSSI values, in all the scanned channels. This should only be
* used to limit the number of returned scan results, and cannot be counted upon to limit