I recently succeeded in getting access to the Ethernet Packet Level data stream over the CC3135,
the gist of which is repeated below:
1. Get your MAC address, (you'll need it to send out packets)
retVal = sl_NetCfgGet(SL_NETCFG_MAC_ADDRESS_GET, &ConfigOpt, &macAddressLen, macAddressVal); //SL_MAC_ADDRESS_GET
2. Connect to an AP ( i.e. Not "transceiver Mode") in the normal way
ret = sl_WlanConnect( (const signed char *)ssid, strlen((const char *)(ssid)), 0, &_secparam, 0);
this may go and run an internal DHCP client, but anyway ...
3. Open a socket like this. (The RxChannel is the channel opened to the AP (Have not tried 5GHz channels yet!!)
sdEtherCon = sl_Socket(SL_AF_PACKET, SL_SOCK_RAW, RxChannel); // e2e.ti.com/.../2010994
4. Make up an Ethernet packet and send it thus
status = sl_Send(sdEtherCon, p_buf, (int16_t)length, (int16_t)0);
5. Recv Ethernet packets thus.
ret = sl_Recv(sdEtherCon, &Rx_frame, RX_BUFFER_SIZE, 0);
When I was trying to find out how to do this, I had to reference mostly non-TI material.
When I searched TI documentation I found very little.
When I searched this Forum I found "You can't do that, 'cos it's not in the manual" sort of answers.
What WE REALLY NEED is a definitive comment from TI, confirming the support of Ethernet packets, and a beefing-up in the Documentation and Example Programs Department.
Best regards
Karel Seeuwen