Manual Join Bug

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

WICED-SDK\resources\config\scan_page_outer.html

function join_manual()

{

  /* var s = 'as0=' + encodeURIComponent(hex2a(document.getElementById('manual_ssid').value)); */

  var s = 'as0=' + encodeURIComponent(document.getElementById('manual_ssid').value);

       

  s += '&at0=' + document.getElementById('manual_sec').value;

       

  if ( document.getElementById('manual_sec').value != 0 )

  {

    s += '&ap0=' + encodeURIComponent(document.getElementById('manual_pass').value);

  }

  do_ajax(  protocol +'://' + window.location.hostname + '/connect?' + s, join_handler );

}

The hex2a function call in the above function, first line that I commented out, is not needed.  The SSID is user entered text box so it is already in ASCII text.  If the SSID came from the scan then it would be in binary and it would conversion.  Need to remove the hex2a call to make it work.

I have seen this bug in 3.1.2 through 3.5.2 SDKs.  It might affected earlier versions, I only started at 3.1.2

0 Likes
0 Replies