I’ve responded to your other thread - this is a known issue with 2.11 that has since been resolved. Title: ESP32-S3 + FGH100MAAMD (MM6108): AP enables OK but STA scan never sees it (0 APs, 35 scans) - #2 by ldennis
I believe the issue is that by the time the AP sends the probe response to the STA, the STA has moved on to the next channel. To work around this, you can configure the STA to stay on the channel for longer before it moves to the next channel (dwell time).
For increasing the dwell time for association, configure with mmwlan_set_scan_config() by setting the config.dwell_time_ms to a bigger value, eg 100ms.
#define MMWLAN_SCAN_CONFIG_INIT \
{ MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS, false, MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS }
/**
* Update the scan configuration with the given settings.
*
* @param config The new configuration to set.
*
* @return @ref MMWLAN_SUCCESS on success, else an appropriate error code.
*/
enum mmwlan_status mmwlan_set_scan_config(const struct mmwlan_scan_config *config);
/** Default value for @c mmwlan_scan_args.dwell_time_ms. Note that reducing the dwell time
* below this value may impact scan reliability. */
#define MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS (30)
/** Default time to dwell on home channel, in between scan channels */
#define MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS (200)
/** Minimum value for @c mmwlan_scan_args.dwell_time_ms. */
#define MMWLAN_SCAN_MIN_DWELL_TIME_MS (15)
/**
For increasing the dwell time for a manual scan (eg the scan.c example application) set the mmwlan_scan_request() scan_req.args.dwell_time_ms to a bigger value
* @note Just because a scan is requested does not mean it will happen immediately.
* It may take some time for the request to be serviced.
*
* @note The scan request may be rejected, in which case the complete callback will be
* invoked immediately with an error status.
*
* @param scan_req Scan request instance. See @ref mmwlan_scan_req.
*
* @return @ref MMWLAN_SUCCESS on success, else an appropriate error code.
*/
enum mmwlan_status mmwlan_scan_request(const struct mmwlan_scan_req *scan_req);
/**
* Abort in progress or pending scans.
*
* The scan callback will be called back with result code @ref MMWLAN_SCAN_TERMINATED for
* all aborted scans.
*
* @return @ref MMWLAN_SUCCESS on success, else an appropriate error code.
*/
enum mmwlan_status mmwlan_scan_abort(void);
Hope that helps