wlan: Replace __FUNCTION__ argument with __func__ in the wlan driver

The fix is to not use the gcc specific __FUNCTION__ to capture function
name; but use __func__  which is a C-99 standard identifier

Change-Id: Ie36f1bb87a3a4a51ec177ab5b6a253e279401e88
CR-Fixed: NA
diff --git a/CORE/HDD/src/wlan_hdd_scan.c b/CORE/HDD/src/wlan_hdd_scan.c
index 23463cb..68fcf7d 100644
--- a/CORE/HDD/src/wlan_hdd_scan.c
+++ b/CORE/HDD/src/wlan_hdd_scan.c
@@ -265,7 +265,7 @@
        break;
    default:
        hddLog( LOGW, "%s: Unknown network type [%d]",
-              __FUNCTION__, descriptor->nwType);
+              __func__, descriptor->nwType);
        modestr = "?";
        break;
    }
@@ -560,7 +560,7 @@
     ENTER();
 
     hddLog(LOGW,"%s called with halHandle = %p, pContext = %p, scanID = %d,"
-           " returned status = %d", __FUNCTION__, halHandle, pContext,
+           " returned status = %d", __func__, halHandle, pContext,
            (int) scanId, (int) status);
 
     /* if there is a scan request pending when the wlan driver is unloaded
@@ -570,7 +570,7 @@
     if (pAdapter->dev != dev)
     {
        hddLog(LOGW, "%s: device mismatch %p vs %p",
-               __FUNCTION__, pAdapter->dev, dev);
+               __func__, pAdapter->dev, dev);
         return eHAL_STATUS_SUCCESS;
     }
 
@@ -578,7 +578,7 @@
     if (pHddCtx->scan_info.scanId != scanId)
     {
         hddLog(LOGW, "%s called with mismatched scanId pHddCtx->scan_info.scanId = %d "
-               "scanId = %d ", __FUNCTION__, (int) pHddCtx->scan_info.scanId,
+               "scanId = %d ", __func__, (int) pHddCtx->scan_info.scanId,
                 (int) scanId);
     }
 
@@ -677,7 +677,7 @@
               else
               {
                 scanRequest.SSIDs.numOfSSIDs = 0;
-                VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, "%s: Unable to allocate memory",__FUNCTION__);
+                VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, "%s: Unable to allocate memory",__func__);
                 VOS_ASSERT(0);
               }
           }
@@ -858,14 +858,14 @@
     ENTER();
 
     hddLog(LOG1,"%s called with halHandle = %p, pContext = %p, scanID = %d,"
-           " returned status = %d", __FUNCTION__, halHandle, pContext,
+           " returned status = %d", __func__, halHandle, pContext,
             (int) scanId, (int) status);
 
     /* Check the scanId */
     if (pwextBuf->scanId != scanId)
     {
         hddLog(LOGW, "%s called with mismatched scanId pWextState->scanId = %d "
-               "scanId = %d ", __FUNCTION__, (int) pwextBuf->scanId,
+               "scanId = %d ", __func__, (int) pwextBuf->scanId,
                 (int) scanId);
     }