OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware_legacy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
79a4e2e
)
am 06eda4e2: Merge "Fix native crash when driver commands time out" into jb-mr1-dev
author
Irfan Sheriff
<isheriff@google.com>
Thu, 18 Oct 2012 23:31:35 +0000
(16:31 -0700)
committer
Android Git Automerger
<android-git-automerger@android.com>
Thu, 18 Oct 2012 23:31:35 +0000
(16:31 -0700)
* commit '
06eda4e2d5cb8aff7253e6be111553086fbc9b82
':
Fix native crash when driver commands time out
wifi/wifi.c
patch
|
blob
|
history
diff --git
a/wifi/wifi.c
b/wifi/wifi.c
index
f669693
..
d62b30f
100644
(file)
--- a/
wifi/wifi.c
+++ b/
wifi/wifi.c
@@
-728,7
+728,13
@@
int wifi_ctrl_recv(int index, char *reply, size_t *reply_len)
if (rfds[0].revents & POLLIN) {
return wpa_ctrl_recv(monitor_conn[index], reply, reply_len);
} else if (rfds[1].revents & POLLIN) {
- wifi_close_sockets(index);
+ /* Close only the p2p sockets on receive side
+ * see wifi_close_supplicant_connection()
+ */
+ if (index == SECONDARY) {
+ ALOGD("close sockets %d", index);
+ wifi_close_sockets(index);
+ }
}
return -2;
}