WPS support in MQX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

WPS support in MQX

729 次查看
pamitha
Contributor I

In our project we are using MQX 4.0 and are planning to use AR4100 module for Wi-Fi connectivity . From Freescale website I came to know that AR4100 has WPS support. I understand that the driver for AR4100 is available in MQX. I would like to know how far there is support for AR4100 driver with WPS in MQX 4.0

标签 (1)
0 项奖励
2 回复数

528 次查看
vinothkumars
Senior Contributor IV

Hi,

Please, checkout,

https://community.nxp.com/message/1150089?commentID=1150089#comment-1150089 

Regards,

VinothS

Regards,
Vinothkumar Sekar
0 项奖励

528 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Pamitha,

You can install the Atheros patch from the following link:

http://www.freescale.com/webapp/sps/site/overview.jsp?code=MQXSWDW

When you install the patch some wifi demos are created

C:\Freescale\Freescale_MQX_4_0\demo\atheros_wifi\examples

All of these demos support WPA security, this is configured in each example with DEMOCFG_SECURITY. e.g.

C:\Freescale\Freescale_MQX_4_0\demo\atheros_wifi\examples\web_hvac\HVAC.h

  #define DEMOCFG_SSID            "LINKS4S_TEST"

   //Possible Values managed or adhoc

   #define DEMOCFG_NW_MODE         "managed"

   //Possible vales

   // 1. "wep"

   // 2. "wpa"

   // 3. "wpa2"

   // 4. "none"

   #define DEMOCFG_SECURITY        "none" //"wep","wpa","wpa2"

   #define DEMOCFG_PASSPHRASE      "123456789"

   #define DEMOCFG_WEP_KEY         "ABCDE"   //"04E49E18F7"

   //Possible values 1,2,3,4

   #define DEMOCFG_WEP_KEY_INDEX   1

   #define DEMOCFG_DEFAULT_DEVICE  0

   #define DEMOCFG_DEFAULT_WEP_MODE  "open"  //"shared"

   #define DEMOCFG_DEFAULT_U_CIPHER  "TKIP"  //"CCMP"

   #define DEMOCFG_DEFAULT_M_CIPHER  "TKIP"  //"CCMP"

Then WPA is configures in RTCS.c file.

if (netparams.sec_type == ENET_MEDIACTL_SECURITY_TYPE_WPA){
        iwcfg_set_sec_type (IPCFG_default_enet_device,"wpa");
        iwcfg_set_passphrase (IPCFG_default_enet_device,(char_ptr)netparams.u.passphrase);
        ath_param.cmd_id = ATH_SET_CIPHER;
        ath_param.data = &netparams.cipher;
        ath_param.length = 8;

        if(ENET_OK != ENET_mediactl (handle,ENET_MEDIACTL_VENDOR_SPECIFIC,&ath_param)){
            SPIN_FOREVER;
        }

Hope this helps!

Carlos

0 项奖励