From 51c9a14dbfbdc02a54313f4e8066eb3286e73e63 Mon Sep 17 00:00:00 2001 From: Jiachao Wu Date: Wed, 25 Apr 2018 19:45:34 +0800 Subject: [PATCH] qcacld-3.0: Return value check error in getlinkspeed The return value check logic is wrong in __iw_get_softap_linkspeed. Which cause get linkspeed always failed. Change-Id: If37732867f91e2b95996614ab863953d5ed5af93 CRs-Fixed: 2232332 --- core/hdd/src/wlan_hdd_hostapd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index f35c0e5cec40..aaa514efdcc8 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -5237,7 +5237,7 @@ int __iw_get_softap_linkspeed(struct net_device *dev, } rc = wlan_hdd_get_linkspeed_for_peermac(adapter, &macAddress, &link_speed); - if (!rc) { + if (rc) { hdd_err("Unable to retrieve SME linkspeed"); return rc; }