sdk_cnx_add_rc: fix overflow of the table, when no match is found.

Also adds source code for sdk_cnx_rc_search, adding a null pointer dereference
check (that is not expected to be seen), and source code for sdk_cnx_remove_rc.
This commit is contained in:
Our Air Quality 2017-08-18 17:36:00 +10:00
parent 87994d3bb4
commit 29da4e9279
3 changed files with 83 additions and 8 deletions

View file

@ -77,7 +77,7 @@ void sdk_eagle_auth_done() {
if (cnx_node->_unknown08 & 1)
return;
uint32_t channel = cnx_node->_unknown78->channel;
uint32_t channel = cnx_node->channel->num;
char *ssid = (char *)sdk_g_ic.s.sta_ssid.ssid;
printf("\nconnected with %s, channel %d\n", ssid, channel);