RW612 SDK - WPL_Join(), wlan_connect() not const-correct

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RW612 SDK - WPL_Join(), wlan_connect() not const-correct

732 Views
dmarks_ls
Senior Contributor II

In the RW612 SDK (v2.16.1), some of the function APIs are as follows:

wpl_ret_t WPL_Join(char *label);
int wlan_connect(char *name);
int wlan_connect_opt(char *name, bool skip_dfs);

These functions should not take a "char *" argument, but instead a "const char *" argument; the strings "label" and "name" are not modified by any of these functions.  Declaring these as non-const prevents using a const char * label as a parameter to wlan_connect() and by extension WPL_Join(), since the latter calls the former.  The above API functions should instead be declared as:

wpl_ret_t WPL_Join(const char *label);
int wlan_connect(const char *name);
int wlan_connect_opt(const char *name, bool skip_dfs);

Please fix this in your next release, thanks.

Dana M.

0 Kudos
Reply
1 Reply

708 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your comments.
I'll pass this information to the corresponding team.

Regards,

Daniel.

0 Kudos
Reply