Can I use STATION & AP mode simultaneously

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I'm building a product based on WICED SDK(bcm43362 chip), I'd like to known can I use AP mode and STATION mode simultaneously ? STATION used for Internet Connecting, AP used for configuration and build the local network.

Some gentleman help me,  TKS!

0 Likes
1 Solution
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog
5 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

Take a look at this blog: Using AP(softAP) and STA(client) simultaneously

I think this is what you are looking for...

More here: Getting Started with WICED Wi-Fi and the Broadcom SDK

Anonymous
Not applicable

That's what I'm looking for, thank you so much!

0 Likes
Anonymous
Not applicable

Hi mwf_mmfae,

Can you take a look at below issues?

http://community.broadcom.com/message/13146#13146

http://community.broadcom.com/thread/3710

I don't think using STATION & AP mode simultaneously works fine in sdk-3.1.2.

Comments?

0 Likes

Hi folks,

We've looked into the problem and were able to identify the error with NetX / NetX_Duo. We create separate NetX stack instances for each interface(STA / AP / P2P), and should have separate ARP caches as well. However in the previous code (3.1.2 and before) it was sharing the same ARP cache between all the interfaces. This was causing corruption in communication. We have tested the below solution out and can confirm this solves the problem for NetX and NetX_Duo. It will be fixed in the next SDK release, in the meanwhile you can apply the changes by the following.

You can change the code in the following locations

    - /WICED/network/NetX/WICED/wiced_network.c

    - /WICED/network/NetX_Duo/WICED/wiced_network.c

/******************************************************

*                Static Variables

******************************************************/

/* Network objects */

++ADD THE FOLLOWING++

static char  wifi_sta_arp_cache[ARP_CACHE_SIZE];

static char  wifi_ap_arp_cache[ARP_CACHE_SIZE];

static char  wifi_p2p_arp_cache[ARP_CACHE_SIZE];

#define WIFI_STA_ARP_CACHE    wifi_sta_arp_cache

#define WIFI_AP_ARP_CACHE    wifi_ap_arp_cache

#define WIFI_P2P_ARP_CACHE    wifi_p2p_arp_cache

static char    wiced_ip_stack[3]    [IP_STACK_SIZE];

--COMMENT OUT BELOW--

//static char    wiced_arp_cache      [ARP_CACHE_SIZE];

In the function wiced_ip_up()

/* Enable ARP */

--COMMENT OUT BELOW--

//if ( nx_arp_enable( &IP_HANDLE(interface), (void *) wiced_arp_cache, ARP_CACHE_SIZE ) != NX_SUCCESS )

++ADD THE FOLLOWING++

if ( nx_arp_enable( &IP_HANDLE(interface), (void *) ARP_FOR_IF( interface ), ARP_CACHE_SIZE ) != NX_SUCCESS )

Unfortunately we could not duplicate this problem on LwIP. We will continue to look into this and will keep you posted on any findings. Thank you for your patience.

Thanks,

Jaeyoung

0 Likes
Anonymous
Not applicable

What about Linux condition, can use AP and STATION simultaneously?

0 Likes