From e7ca16a9beb0ec4c21fe4ea5fbff3bebb0dffefb Mon Sep 17 00:00:00 2001 From: Prakash Dhavali Date: Fri, 6 Dec 2013 03:40:26 -0800 Subject: cld: hdd: Fix compilation error in iw_set_pno() RSSI threshold data type for PNO is changed to signed long in below commit, "cld: hdd: Handle RSSI threshold value passed in start sched_scan" Due to this, compiler generated below error, CORE/HDD/src/wlan_hdd_wext.c:7085:15: warning: format '%hhu' expects argument of type 'unsigned char *', but argument 3 has type 'tANI_S32 *' [-Wformat] error, forbidden warning: wlan_hdd_wext.c:7085 Change-Id: I521d38794bb8bf164275d1843d431f2bad8e05f7 CRs-fixed: 567665 --- CORE/HDD/src/wlan_hdd_wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c index faa5bb40ed56..563d6d963c38 100644 --- a/CORE/HDD/src/wlan_hdd_wext.c +++ b/CORE/HDD/src/wlan_hdd_wext.c @@ -7132,7 +7132,7 @@ VOS_STATUS iw_set_pno(struct net_device *dev, struct iw_request_info *info, /*Advance to rssi Threshold*/ ptr += nOffset; - sscanf(ptr,"%ld %n", + sscanf(ptr,"%hhu %n", &(pnoRequest.aNetworks[i].rssiThreshold), &nOffset); VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO, -- cgit v1.2.3