nrf7002 wi-fi wpa2 enterprise mode(eap-tls)

I'm using nrf7002DK to test the wpa2 enterprise mode connection, but it has some problem for connecting.
I'm using ncs 2.8. 

logs output didn't show "connect success", but it stopped on "Wi-Fi connection request sent.." when I choose eap-tls mode.

(I've tried test this code by selecting the personal mode(psk) to connect to wpa personal ap, and it's successfuly connect.)

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
00> *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
00> [00:00:00.663,604] <dbg> wpa_supp: wpa_printf_impl: wpa_supplicant v2.11-devel
00> [00:00:00.665,222] <inf> wifi_supplicant: wpa_supplicant initialized
00> [00:00:00.667,144] <dbg> wifi_supplicant: add_interface: Adding interface wlan0 [1] (0x200073b8)
00> [00:00:00.667,694] <dbg> wpa_supp: wpa_printf_impl: Calling wpa_cli: interface_add, argc: 5
00> [00:00:00.668,151] <dbg> wpa_supp: wpa_printf_impl: argv[0]: interface_add
00> [00:00:00.668,548] <dbg> wpa_supp: wpa_printf_impl: argv[1]: wlan0
00> [00:00:00.668,914] <dbg> wpa_supp: wpa_printf_impl: argv[2]: zephyr
00> [00:00:00.669,281] <dbg> wpa_supp: wpa_printf_impl: argv[3]: zephyr
00> [00:00:00.669,677] <dbg> wpa_supp: wpa_printf_impl: argv[4]: zephyr
00> [00:00:00.670,776] <dbg> wpa_supp: wpa_printf_impl: RX global ctrl_iface - hexdump_ascii(len=71):
00> [00:00:00.671,203] <dbg> wpa_supp: _wpa_hexdump_ascii:
00> 49 4e 54 45 52 46 41 43 45 5f 41 44 44 20 77 6c |INTERFAC E_ADD wl
00> 61 6e 30 09 7a 65 70 68 79 72 09 7a 65 70 68 79 |an0.zeph yr.zephy
00> 72 09 7a 65 70 68 79 72 09 09 09 09 20 77 6c 61 |r.zephyr .... wla
00> 6e 30 20 7a 65 70 68 79 72 20 7a 65 70 68 79 72 |n0 zephy r zephyr
00> 20 7a 65 70 68 79 72 | zephyr
00> [00:00:00.674,591] <dbg> wpa_supp: wpa_printf_impl: CTRL_IFACE GLOBAL INTERFACE_ADD 'wlan0 zephyr zephyr zephyr wlan0 zephyr zephyr zephyr'
00> [00:00:00.675,689] <dbg> wpa_supp: wpa_printf_impl: Initializing interface 'wlan0' conf 'zephyr' driver 'zephyr' ctrl_interface 'zephyr' bridge 'N/A'
00> [00:00:00.680,999] <dbg> wpa_supp: wpa_printf_impl: Add interface wlan0 to a new radio N/A
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

My ap logs and radius server didn't show the receive request, so I guess the problem is on firmware program.

Is there something wrong with my code? 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <errno.h>
#include <zephyr/net/wifi_mgmt.h>
#include <zephyr/net/net_mgmt.h>
#include "ca.h"
#include "client.h"
#include "client_key.h"
#include <zephyr/sys/printk.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(wifi, 3);
static volatile bool wifi_connected = false;
struct wifi_eap_config eap_conf = {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

6201.prj.conf

overlay-enterprise.conf

Parents Reply Children
  • Hi, 

    I've tried this sample, the Freeradius server has received the access request, and sent access challenge, and didn't show any error, but it seens that the client or ap didn't reply. So the two messages,"receive access request" and "sent access challenge", keep looping on the server. Client still printed "connection failed". I don't know whether the problem is on the WIFI ap or nrf7002 sample.

    nrf7002 output

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    *** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    [00:00:00.708,221] <dbg> wpa_supp: wpa_printf_impl: wpa_supplicant v2.11-devel
    [00:00:00.709,442] <inf> wifi_supplicant: wpa_supplicant initialized
    [00:00:00.710,784] <dbg> wifi_supplicant: add_interface: Adding interface wlan0 [1] (0x20000c80)
    [00:00:00.710,906] <dbg> wpa_supp: wpa_printf_impl: Calling wpa_cli: interface_add, argc: 5
    [00:00:00.710,998] <dbg> wpa_supp: wpa_printf_impl: argv[0]: interface_add
    [00:00:00.711,059] <dbg> wpa_supp: wpa_printf_impl: argv[1]: wlan0
    [00:00:00.711,151] <dbg> wpa_supp: wpa_printf_impl: argv[2]: zephyr
    [00:00:00.711,212] <dbg> wpa_supp: wpa_printf_impl: argv[3]: zephyr
    [00:00:00.711,303] <dbg> wpa_supp: wpa_printf_impl: argv[4]: zephyr
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    radius server output

    ap ouput

    Regards,

    Allen

  • Hi, does the nrf sdk support other protocol like wpa3 or ttls on nrf7002? Since the sample only says that it support wpa2-eap-tls.