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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

730件の閲覧回数
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 件の賞賛
返信
1 返信

706件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

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

Regards,

Daniel.

0 件の賞賛
返信