diff options
author | Irfan Sheriff <isheriff@google.com> | 2012-04-04 16:22:21 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2012-04-12 17:50:29 -0700 |
commit | 21ba8153325e010224c6bc75a0acdc98b6ca82e8 (patch) | |
tree | 9d1e982ef4f02a31be76a8c1220b0ce7d3f0b541 /core/jni/android_net_wifi_Wifi.cpp | |
parent | 63c115c4aa2158ea18338a9fb2c2619755958ddc (diff) | |
download | frameworks_base-21ba8153325e010224c6bc75a0acdc98b6ca82e8.zip frameworks_base-21ba8153325e010224c6bc75a0acdc98b6ca82e8.tar.gz frameworks_base-21ba8153325e010224c6bc75a0acdc98b6ca82e8.tar.bz2 |
Pre-association service discovery support
Add UPnp, Bonjour and vendor specific support for discovering services on
Wi-Fi direct before establishing a connection.
Change-Id: I1c1f3427180abdc80a4e682e713adc7f0326c5ef
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
Diffstat (limited to 'core/jni/android_net_wifi_Wifi.cpp')
-rw-r--r-- | core/jni/android_net_wifi_Wifi.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/jni/android_net_wifi_Wifi.cpp b/core/jni/android_net_wifi_Wifi.cpp index c5ff16e..e7c4c23 100644 --- a/core/jni/android_net_wifi_Wifi.cpp +++ b/core/jni/android_net_wifi_Wifi.cpp @@ -27,6 +27,7 @@ #define WIFI_PKG_NAME "android/net/wifi/WifiNative" #define BUF_SIZE 256 +#define EVENT_BUF_SIZE 2048 namespace android { @@ -140,7 +141,7 @@ static void android_net_wifi_closeSupplicantConnection(JNIEnv* env, jobject, jst static jstring android_net_wifi_waitForEvent(JNIEnv* env, jobject, jstring jIface) { - char buf[BUF_SIZE]; + char buf[EVENT_BUF_SIZE]; ScopedUtfChars ifname(env, jIface); int nread = ::wifi_wait_for_event(ifname.c_str(), buf, sizeof buf); if (nread > 0) { |