wlan: Fix for passing proper freq when sta is not connected.
Change-Id: I101898413793bfaba3c1e59e1b03ac9a7eef97f1
CR-Fixed: 407484, 407449
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index ab4252e..e06d914 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -1145,16 +1145,11 @@
}
else
{
- channel = pHddStaCtx->conn_info.operationChannel;
- status = hdd_wlan_get_freq(channel, &freq);
- if( TRUE == status )
- {
- /* Set Exponent parameter as 6 (MHZ) in struct iw_freq
- * iwlist & iwconfig command shows frequency into proper
- * format (2.412 GHz instead of 246.2 MHz)*/
- fwrq->m = freq;
- fwrq->e = MHZ;
- }
+ /* Set Exponent parameter as 6 (MHZ) in struct iw_freq
+ * iwlist & iwconfig command shows frequency into proper
+ * format (2.412 GHz instead of 246.2 MHz)*/
+ fwrq->m = 0;
+ fwrq->e = MHZ;
}
return 0;
}