Skip to content

Commit a32e7aa

Browse files
Jordan Yatescarlescufi
authored andcommitted
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 <[email protected]>
1 parent 1f3605d commit a32e7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ struct wifi_scan_params {
245245
uint16_t dwell_time_passive;
246246
/** Array of SSID strings to scan.
247247
*/
248-
char ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX][WIFI_SSID_MAX_LEN + 1];
248+
const char *ssids[WIFI_MGMT_SCAN_SSID_FILT_MAX];
249249
/** Specifies the maximum number of scan results to return. These results would be the
250250
* BSSIDS with the best RSSI values, in all the scanned channels. This should only be
251251
* used to limit the number of returned scan results, and cannot be counted upon to limit

0 commit comments

Comments
 (0)