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.

Questions about wlan_ioctl_set_connection_policy

What does this comment mean?

1) If fast connect is enabled and last connection is valid,

//! the device will try to connect to it without the scanning

//! procedure (fast). The last connection will be marked as

//! invalid, due to adding/removing profile.

I'm concerned about the connection being marked as invalid.  What are they referring to?

  • Hi Anthony,

    Here the comment is pointing to scenarios when the fast connect would not work. The fast connect would not work when the previous connection is set as invalid. And the previous connection would be set as invalid whenever wee add or remove the profiles.

    For instance, in the below sequence the fast connect would not work because all the profiles were deleted and the connection is marked invalid.

    wlan_ioctl_del_profile(255);
    wlan_ioctl_set_connection_policy(DISABLE, ENABLE, DISABLE);

    Thanks & Regards,
    Raghavendra

  • OK, so changing the saved profiles marks fast connect as invalid.

    wlan_ioctl_set_connection_policy(DISABLE, ENABLE, ENABLE);naHC

    If instead the connection policy were as above, I assume it would connect based on the profiles.

    After changing the profiles, is it necessary to reissue the wlan_ioctl_set_connection_policy, or only to reset the module?



  • Hi Anthony,

    You would infact have to do both.

    You would first have to set the policy. And then do a reset. This will connect your CC3000 to the AP saved in the profile.

    Thanks & Regards,
    Raghavendra