diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-02-06 16:28:41 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-07 11:21:22 +0200 |
commit | 5ab76c6042343202dc712e7d69103a76c5c36590 (patch) | |
tree | 0c79c966a5897e26d8e244dfa2d87d932cc37118 /android/pan.c | |
parent | b4fbbb033ec3165d153b626c48e560c021fe59a7 (diff) | |
download | bluez-5ab76c6042343202dc712e7d69103a76c5c36590.tar.gz |
android/pan: Pass error in nap_remove_bridge
Don't return EOPNOTSUPP but just pass error from errno.
Diffstat (limited to 'android/pan.c')
-rw-r--r-- | android/pan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/android/pan.c b/android/pan.c index 1cb82a172..418e2a42c 100644 --- a/android/pan.c +++ b/android/pan.c @@ -146,10 +146,13 @@ static int nap_remove_bridge(void) return -EOPNOTSUPP; err = ioctl(sk, SIOCBRDELBR, BNEP_BRIDGE); + if (err < 0) + err = -errno; + close(sk); if (err < 0) - return -EOPNOTSUPP; + return err; nap_dev.bridge = false; |