Skip to content

Commit 5d2ba63

Browse files
ITotalJusticefincs
authored andcommitted
wfc: add handling for wps.
1 parent f61bbc6 commit 5d2ba63

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/wfc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ static void _wfcOnEvent(void* user, WlMgrEvent event, uptr arg0, uptr arg1)
402402
break;
403403
}
404404

405-
case WfcConnType_WpaNormal: {
405+
case WfcConnType_WpaNormal:
406+
case WfcConnType_WpaWps: {
406407
bss->auth_type = (WlanBssAuthType)slot->wpa_mode;
407408
memcpy(auth.wpa_psk, slot->wpa_pmk, WLAN_WPA_PSK_LEN);
408409
break;
@@ -558,7 +559,7 @@ bool wfcLoadSlot(const WfcConnSlot* slot)
558559

559560
bool wfcLoadSlotEx(const WfcConnSlotEx* slot)
560561
{
561-
if (slot->base.conn_type != WfcConnType_WepNormal && slot->base.conn_type != WfcConnType_WpaNormal) {
562+
if (slot->base.conn_type != WfcConnType_WepNormal && slot->base.conn_type != WfcConnType_WpaNormal && slot->base.conn_type != WfcConnType_WpaWps) {
562563
return false;
563564
}
564565

0 commit comments

Comments
 (0)