diff options
-rwxr-xr-x | usr/local/www/interfaces_wlan.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc index 09ad676..eafff4b 100755 --- a/usr/local/www/interfaces_wlan.inc +++ b/usr/local/www/interfaces_wlan.inc @@ -86,6 +86,13 @@ function wireless_config_post() { } continue; } + if(strlen($_POST['key' . $i]) == 12) { + /* hex key */ + if(stristr($_POST['key' . $i], "0x") == false) { + $_POST['key' . $i] = "0x" . $_POST['key' . $i]; + } + continue; + } /* 128 bit */ if(strlen($_POST['key' . $i]) == 13) continue; |