diff options
author | Grigoriy Kraynov <kraynov@mgpro.ru> | 2014-08-16 14:42:44 +0400 |
---|---|---|
committer | Grigoriy Kraynov <kraynov@mgpro.ru> | 2014-08-18 01:18:34 +0400 |
commit | 8b3b81000c6fe7e6e5bab0f3e2d24022d3eaaea8 (patch) | |
tree | 646c6d6191599d1ed2be1dc6897d079487cf949d /wifi | |
parent | 4179e88963456946fe6e580f2211341cc8ccba5c (diff) | |
download | frameworks_base-8b3b81000c6fe7e6e5bab0f3e2d24022d3eaaea8.zip frameworks_base-8b3b81000c6fe7e6e5bab0f3e2d24022d3eaaea8.tar.gz frameworks_base-8b3b81000c6fe7e6e5bab0f3e2d24022d3eaaea8.tar.bz2 |
WifiP2pWfdInfo set device type bugfix
Change-Id: I37a53aed80574e78c80dc4a4192bd8cc4320de9d
Signed-off-by: Grigoriy Kraynov <kraynov@mgpro.ru>
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java b/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java index d65d03e..92c7e36 100644 --- a/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java +++ b/wifi/java/android/net/wifi/p2p/WifiP2pWfdInfo.java @@ -77,6 +77,7 @@ public class WifiP2pWfdInfo implements Parcelable { public boolean setDeviceType(int deviceType) { if (deviceType >= WFD_SOURCE && deviceType <= SOURCE_OR_PRIMARY_SINK) { + mDeviceInfo &= ~DEVICE_TYPE; mDeviceInfo |= deviceType; return true; } |