Hi support,
Our device is attempting to figure out what LSI to request based on the AP settings provided by a call to
// Will only return valid info when STA is connected to AP
SlWlanExtConnectionInfo_t ExtConnectionInfo;
_u16 config_opt = SL_WLAN_GENERAL_PARAM_EXT_CONNECTION_INFO;
_u16 Len = sizeof(SlWlanExtConnectionInfo_t);
uint16_t sl_ret_val = sl_WlanGet(SL_WLAN_CFG_GENERAL_PARAM_ID, &config_opt, &Len, (_u8 * )&ExtConnectionInfo);
assert (sl_ret_val == 0);
The sl_WlanGet function is returning 0 even though the data is not yet updated. We have an AP that it set to have a DTIM of 2, yet it is returning a ExtConnectionInfo.DTIMPeriod of 1 sometimes. It doesn't happen every time. Maybe 20% of the time, it is returning a DTIMPeriod of 1 instead of 2.
We tried gating this call after SL_NETAPP_EVENT_IPV4_ACQUIRED, and after SL_WLAN_EVENT_CONNECT, but the same behavior results.
When is it OK to make the call to grab this data? Should we be adding in some delay after one of these events above?
Thanks!