wlan: fix invalid handling of user data in HDD

Fixing direct access of user space pointer inside HDD ioctl

Change-Id: I0bd221849f70f6e653d83db2abcad5f517a41e48
CRs-Fixed: 561026
diff --git a/CORE/HDD/src/wlan_hdd_scan.c b/CORE/HDD/src/wlan_hdd_scan.c
index 6cbc426..42245d2 100644
--- a/CORE/HDD/src/wlan_hdd_scan.c
+++ b/CORE/HDD/src/wlan_hdd_scan.c
@@ -949,8 +949,7 @@
         int i, j, ssid_start;
         hdd_scan_pending_option_e scanPendingOption = WEXT_SCAN_PENDING_GIVEUP;
 
-        /* save the original buffer */
-        str_ptr = wrqu->data.pointer;
+        str_ptr = extra;
 
         i = WEXT_CSCAN_HEADER_SIZE;