From ec78a23a566c2942a4e555c414c3f1fdff961c33 Mon Sep 17 00:00:00 2001 From: Richard Ellis Date: Sat, 15 Apr 2023 22:54:57 -0400 Subject: [PATCH] Code changes to allow 64 character hex WiFi passwords to be used with wifi.radio.connect. Fixes adafruit/circuitpython#7677. --- py/argcheck.c | 13 +++++++++++++ py/runtime.h | 1 + shared-bindings/wifi/Radio.c | 10 ++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/py/argcheck.c b/py/argcheck.c index 465a82c97e..73f3ead269 100644 --- a/py/argcheck.c +++ b/py/argcheck.c @@ -268,6 +268,19 @@ mp_int_t mp_arg_validate_type_int(mp_obj_t obj, qstr arg_name) { return an_int; } +mp_int_t mp_arg_validate_valid_hex_password(mp_uint_t length, uint8_t *buf) { + unsigned int i=0; + while (i