Wifi on Android

7 views
Skip to first unread message

Ricardo Silva

unread,
Dec 29, 2009, 10:01:14 AM12/29/09
to android-platform
Hi,

I need to access Wifi interface from C/C++. How can I do this? there
is some Wifi daemon? wpa_supplicant? Or can I use directly the wifi
driver? How?

I'm using a DevPhone (G1). I know that to use unix sockets need root,
but this its not for a comercial application. Its only for testing.

Regards

Ricardo Silva

unread,
Jan 11, 2010, 6:40:46 AM1/11/10
to android-platform
No one knows?

Other question, how the package android.net.wifi use the
wpa_supplicant? AIDL?

Regards

On Dec 29 2009, 3:01 pm, Ricardo Silva <ban...@gmail.com> wrote:
> Hi,
>
> I need to accessWifiinterface from C/C++. How can I do this? there
> is someWifidaemon? wpa_supplicant? Or can I use directly thewifi

nekia

unread,
Jan 27, 2010, 11:31:29 PM1/27/10
to android-platform
Hi,

You can use the following C I/F to do so.

hardware/libhardware_legacy/include/hardware_legacy/wifi.h
or
system/wlan/ti/sta_dk_4_0_4_32/CUDK/Inc/TI_AdapterApiC.h
system/wlan/ti/sta_dk_4_0_4_32/CUDK/Inc/TI_AdapterApiCpp.h
# this is for direct access to wifi driver.

Regards

> > Regards- 引用テキストを表示しない -
>
> - 引用テキストを表示 -

Ricardo Silva

unread,
Jan 28, 2010, 4:49:54 AM1/28/10
to android-...@googlegroups.com
Ok. Will try on theses. There is some way to integrate the libs on Android (rild, wifi, etc) in the NDK? to be imported on C and used (with JNI/Java)?

Best Regards,
Ricardo Silva


2010/1/28 nekia <neki...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


Reply all
Reply to author
Forward
0 new messages