Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_opt_net_wifi
Commits
cacdd4fc
Commit
cacdd4fc
authored
9 years ago
by
Vinit Deshpande
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Fix mismatched buffer size in supplicant and WifiNative" into mnc-dr-dev
parents
70478da8
bbbafda1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
service/jni/com_android_server_wifi_WifiNative.cpp
service/jni/com_android_server_wifi_WifiNative.cpp
+7
-2
No files found.
service/jni/com_android_server_wifi_WifiNative.cpp
View file @
cacdd4fc
...
...
@@ -32,7 +32,7 @@
#include "jni_helper.h"
#include "rtt.h"
#include "wifi_hal_stub.h"
#define REPLY_BUF_SIZE 4096 // wpa_supplicant's maximum size
.
#define REPLY_BUF_SIZE 4096
+ 1
// wpa_supplicant's maximum size
+ 1 for nul
#define EVENT_BUF_SIZE 2048
namespace
android
{
...
...
@@ -138,7 +138,12 @@ static jboolean doBooleanCommand(JNIEnv* env, jstring javaCommand) {
if
(
!
doCommand
(
env
,
javaCommand
,
reply
,
sizeof
(
reply
)))
{
return
JNI_FALSE
;
}
return
(
strcmp
(
reply
,
"OK"
)
==
0
);
jboolean
result
=
(
strcmp
(
reply
,
"OK"
)
==
0
);
if
(
!
result
)
{
ScopedUtfChars
command
(
env
,
javaCommand
);
ALOGI
(
"command '%s' returned '%s"
,
command
.
c_str
(),
reply
);
}
return
result
;
}
// Send a command to the supplicant, and return the reply as a String.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment