cancel
Showing results for 
Search instead for 
Did you mean: 

Securing WiFi with XNUCLEOIDW04A1, SPWF04SA: HTTP server, MiniAP, WEP vs WPA(2)

Tapio Valli
Associate II

Hello,

I am using the above mentioned Wi-Fi board o

In my project. Wi-Fi security is my concern, because the http server works in MiniAP mode which only has Open or WEP security. WEP can be trivially cracked. Is there any possibility to enhance security? Can I run http server in STA mode with WPA2 enabled. Can the MiniAP be enabled to use WPA2?

Thanks!

6 REPLIES 6
Elio Cometti
Senior II

​Hello,

Even though it is not mentioned in the user manual, the MiniAP can actually be enabled to use WPA/2:

wifi_mode=3

wifi_priv_mode=2

Regards,

Elio

Tapio Valli
Associate II

Hello,

Thanks for your answer. I cannot get WPA2 to work. Here's my workflow

AT+S.WIFI=0

AT+S.SCFG=wifi_wpa_psk_text,MyWPAKey

AT+S.SCFG=ip_apdomainname,mydomain.net

AT+S.SCFG=wifi_mode,3

AT+S.SCFG=wifi_auth_type,0

AT+S.SCFG=wifi_priv_mode,2

AT+S.WCFG

AT+S.WIFI=1

The Wifi AP identifies as WEP, does not accept my MyWPAKey - I cannot make WEP to work either; not that familiar with WEP, I used a calculator to turn my key into hex and the set wep_lens and the current wep [0] .. could not authenticate still. What I am doing wrong here?

Elio Cometti
Senior II

Hello,

Can you attach your configuration (AT+S.GCFG​) and status (AT+S.STS)?

Thanks

Tapio Valli
Associate II

OK, just found out this. I have original 1.0.0 FW, the WPA in Mini AP is available in 1.1.0. Now I need to find how to update firmware

Elio Cometti
Senior II

​Hello,

update instructions are include in the FW package STSW-WIFI004.

Regards,

Elio

Tapio Valli
Associate II

Updated the FW to 1.1.0. And I got WPA to work! Thanks Elio, great support from you & ST!