This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF: Background AP Scan during connected state

Part Number: CC3220SF

Tool/software:

Hi Team,

Right now, we've connected the CC3220SF Chip to the access point. We need to perform the access point scan when the device is connected to the access point. My doubt is can we perform background access point scan while still the device is connected to one access point. 

Additionally, we've used the network_terminal example project, where we add the profile and scan the list of SSID. we used the Sl_WlanRxStatGet API to get the avg RSSI but we need to know which API will get the connection status (Connected/disconnected) of AP (access point)

  • Hi,

    Yes, there is no limitation of scanning while connected. You use the same scan API.

    For connection info, you can use one of the two:

    • basic:
      _i16 RetVal = 0 ;
      _u16 Len = sizeof(SlWlanConnStatusParam_t) ;
      SlWlanConnStatusParam_t WlanConnectInfo ;
      RetVal = sl_WlanGet(SL_WLAN_CONNECTION_INFO, NULL, &Len, (_u8* )&WlanConnectInfo);
    • extended:
      int8_t ret = 0;
      SlWlanExtConnectionInfo_t ExtConnectionInfo;
      _u16 config_opt = SL_WLAN_GENERAL_PARAM_EXT_CONNECTION_INFO;
      _u16 Len = sizeof(SlWlanExtConnectionInfo_t);
      ret = sl_WlanGet(SL_WLAN_CFG_GENERAL_PARAM_ID, &config_opt, &Len, (_u8* )&ExtConnectionInfo);

    Regards,

    Shlomi