Other Parts Discussed in Thread: CC3100
Hello,
CC3100 info:
Ver = 2.12.2.8.31.1.5.0.10.1.0.3.37
MAC: D0:5F:B8:4C:38:13
Driver Ver = 1.0.1.14
I config CC3100 as AP and try connect my Cellphone to AP.
1. Connection success - OK.
2. Receive phone MAC address and IP address - OK.
3. Can't see the connected client SSID, the parameter in struct slPeerInfoAsyncResponse_t own_ssid_len - always 0
and own_ssid[32] not filled with the client real SSID info.
I'm using event:
void SimpleLinkWlanEventHandler(SlWlanEvent_t *pWlanEvents)
{
switch(pWlanEvents->Event)
{
case SL_WLAN_STA_CONNECTED_EVENT:
{
//
// Information about the connected client (like SSID, MAC etc) will be
// available in 'slPeerInfoAsyncResponse_t' - Applications
// can use it if required
//
slPeerInfoAsyncResponse_t *pEventData = NULL;
pEventData = &pWlanEvents->EventData.APModeStaConnected;
//
//Read SSID
printf("The client SSID: %s, len %d\n", pEventData->own_ssid, pEventData->own_ssid_len); /* Receive len = 0. own_ssid - doesn't fill the correct info.*/
printf("The client connected MAC: %.2x-%.2x-%.2x-%.2x-%.2x-%.2x \n", pEventData->mac[0],
pEventData->mac[1],
pEventData->mac[2],
pEventData->mac[3],
pEventData->mac[4],
pEventData->mac[5]);
}
break;
case SL_WLAN_STA_DISCONNECTED_EVENT:
{
//
// Information about the connected client (like SSID, MAC etc) will
// be available in 'slPeerInfoAsyncResponse_t' - Applications
// can use it if required
//
slPeerInfoAsyncResponse_t *pEventData = NULL;
pEventData = &pWlanEvents->EventData.APModestaDisconnected;
//
printf("The client disconnected MAC: %.2x-%.2x-%.2x-%.2x-%.2x-%.2x \n", pEventData->mac[0],
pEventData->mac[1],
pEventData->mac[2],
pEventData->mac[3],
pEventData->mac[4],
pEventData->mac[5]);
}
break;
default:
break;
}
Pls advise,
Kind Regards,
Leon.