diff options
Diffstat (limited to 'drivers/staging/rt2870/common/spectrum.c')
-rw-r--r-- | drivers/staging/rt2870/common/spectrum.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/staging/rt2870/common/spectrum.c b/drivers/staging/rt2870/common/spectrum.c index abba8405184..43782ce9288 100644 --- a/drivers/staging/rt2870/common/spectrum.c +++ b/drivers/staging/rt2870/common/spectrum.c | |||
@@ -48,7 +48,7 @@ VOID MeasureReqTabInit( | |||
48 | if (pAd->CommonCfg.pMeasureReqTab) | 48 | if (pAd->CommonCfg.pMeasureReqTab) |
49 | NdisZeroMemory(pAd->CommonCfg.pMeasureReqTab, sizeof(MEASURE_REQ_TAB)); | 49 | NdisZeroMemory(pAd->CommonCfg.pMeasureReqTab, sizeof(MEASURE_REQ_TAB)); |
50 | else | 50 | else |
51 | DBGPRINT(RT_DEBUG_ERROR, ("%s Fail to alloc memory for pAd->CommonCfg.pMeasureReqTab.\n", __FUNCTION__)); | 51 | DBGPRINT(RT_DEBUG_ERROR, ("%s Fail to alloc memory for pAd->CommonCfg.pMeasureReqTab.\n", __func__)); |
52 | 52 | ||
53 | return; | 53 | return; |
54 | } | 54 | } |
@@ -76,7 +76,7 @@ static PMEASURE_REQ_ENTRY MeasureReqLookUp( | |||
76 | 76 | ||
77 | if (pTab == NULL) | 77 | if (pTab == NULL) |
78 | { | 78 | { |
79 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab doesn't exist.\n", __FUNCTION__)); | 79 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab doesn't exist.\n", __func__)); |
80 | return NULL; | 80 | return NULL; |
81 | } | 81 | } |
82 | 82 | ||
@@ -113,7 +113,7 @@ static PMEASURE_REQ_ENTRY MeasureReqInsert( | |||
113 | 113 | ||
114 | if(pTab == NULL) | 114 | if(pTab == NULL) |
115 | { | 115 | { |
116 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab doesn't exist.\n", __FUNCTION__)); | 116 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab doesn't exist.\n", __func__)); |
117 | return NULL; | 117 | return NULL; |
118 | } | 118 | } |
119 | 119 | ||
@@ -174,7 +174,7 @@ static PMEASURE_REQ_ENTRY MeasureReqInsert( | |||
174 | else | 174 | else |
175 | { | 175 | { |
176 | pEntry = NULL; | 176 | pEntry = NULL; |
177 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab tab full.\n", __FUNCTION__)); | 177 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab tab full.\n", __func__)); |
178 | } | 178 | } |
179 | 179 | ||
180 | // add this Neighbor entry into HASH table | 180 | // add this Neighbor entry into HASH table |
@@ -209,7 +209,7 @@ static VOID MeasureReqDelete( | |||
209 | 209 | ||
210 | if(pTab == NULL) | 210 | if(pTab == NULL) |
211 | { | 211 | { |
212 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab doesn't exist.\n", __FUNCTION__)); | 212 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pMeasureReqTab doesn't exist.\n", __func__)); |
213 | return; | 213 | return; |
214 | } | 214 | } |
215 | 215 | ||
@@ -266,7 +266,7 @@ VOID TpcReqTabInit( | |||
266 | if (pAd->CommonCfg.pTpcReqTab) | 266 | if (pAd->CommonCfg.pTpcReqTab) |
267 | NdisZeroMemory(pAd->CommonCfg.pTpcReqTab, sizeof(TPC_REQ_TAB)); | 267 | NdisZeroMemory(pAd->CommonCfg.pTpcReqTab, sizeof(TPC_REQ_TAB)); |
268 | else | 268 | else |
269 | DBGPRINT(RT_DEBUG_ERROR, ("%s Fail to alloc memory for pAd->CommonCfg.pTpcReqTab.\n", __FUNCTION__)); | 269 | DBGPRINT(RT_DEBUG_ERROR, ("%s Fail to alloc memory for pAd->CommonCfg.pTpcReqTab.\n", __func__)); |
270 | 270 | ||
271 | return; | 271 | return; |
272 | } | 272 | } |
@@ -294,7 +294,7 @@ static PTPC_REQ_ENTRY TpcReqLookUp( | |||
294 | 294 | ||
295 | if (pTab == NULL) | 295 | if (pTab == NULL) |
296 | { | 296 | { |
297 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab doesn't exist.\n", __FUNCTION__)); | 297 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab doesn't exist.\n", __func__)); |
298 | return NULL; | 298 | return NULL; |
299 | } | 299 | } |
300 | 300 | ||
@@ -332,7 +332,7 @@ static PTPC_REQ_ENTRY TpcReqInsert( | |||
332 | 332 | ||
333 | if(pTab == NULL) | 333 | if(pTab == NULL) |
334 | { | 334 | { |
335 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab doesn't exist.\n", __FUNCTION__)); | 335 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab doesn't exist.\n", __func__)); |
336 | return NULL; | 336 | return NULL; |
337 | } | 337 | } |
338 | 338 | ||
@@ -393,7 +393,7 @@ static PTPC_REQ_ENTRY TpcReqInsert( | |||
393 | else | 393 | else |
394 | { | 394 | { |
395 | pEntry = NULL; | 395 | pEntry = NULL; |
396 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab tab full.\n", __FUNCTION__)); | 396 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab tab full.\n", __func__)); |
397 | } | 397 | } |
398 | 398 | ||
399 | // add this Neighbor entry into HASH table | 399 | // add this Neighbor entry into HASH table |
@@ -428,7 +428,7 @@ static VOID TpcReqDelete( | |||
428 | 428 | ||
429 | if(pTab == NULL) | 429 | if(pTab == NULL) |
430 | { | 430 | { |
431 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab doesn't exist.\n", __FUNCTION__)); | 431 | DBGPRINT(RT_DEBUG_ERROR, ("%s: pTpcReqTab doesn't exist.\n", __func__)); |
432 | return; | 432 | return; |
433 | } | 433 | } |
434 | 434 | ||
@@ -781,7 +781,7 @@ VOID EnqueueMeasurementReq( | |||
781 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory | 781 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory |
782 | if(NStatus != NDIS_STATUS_SUCCESS) | 782 | if(NStatus != NDIS_STATUS_SUCCESS) |
783 | { | 783 | { |
784 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __FUNCTION__)); | 784 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __func__)); |
785 | return; | 785 | return; |
786 | } | 786 | } |
787 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); | 787 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); |
@@ -843,7 +843,7 @@ VOID EnqueueMeasurementRep( | |||
843 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory | 843 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory |
844 | if(NStatus != NDIS_STATUS_SUCCESS) | 844 | if(NStatus != NDIS_STATUS_SUCCESS) |
845 | { | 845 | { |
846 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __FUNCTION__)); | 846 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __func__)); |
847 | return; | 847 | return; |
848 | } | 848 | } |
849 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); | 849 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); |
@@ -897,7 +897,7 @@ VOID EnqueueTPCReq( | |||
897 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory | 897 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory |
898 | if(NStatus != NDIS_STATUS_SUCCESS) | 898 | if(NStatus != NDIS_STATUS_SUCCESS) |
899 | { | 899 | { |
900 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __FUNCTION__)); | 900 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __func__)); |
901 | return; | 901 | return; |
902 | } | 902 | } |
903 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); | 903 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); |
@@ -949,7 +949,7 @@ VOID EnqueueTPCRep( | |||
949 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory | 949 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory |
950 | if(NStatus != NDIS_STATUS_SUCCESS) | 950 | if(NStatus != NDIS_STATUS_SUCCESS) |
951 | { | 951 | { |
952 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __FUNCTION__)); | 952 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __func__)); |
953 | return; | 953 | return; |
954 | } | 954 | } |
955 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); | 955 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); |
@@ -1002,7 +1002,7 @@ VOID EnqueueChSwAnn( | |||
1002 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory | 1002 | NStatus = MlmeAllocateMemory(pAd, (PVOID)&pOutBuffer); //Get an unused nonpaged memory |
1003 | if(NStatus != NDIS_STATUS_SUCCESS) | 1003 | if(NStatus != NDIS_STATUS_SUCCESS) |
1004 | { | 1004 | { |
1005 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __FUNCTION__)); | 1005 | DBGPRINT(RT_DEBUG_TRACE, ("%s() allocate memory failed \n", __func__)); |
1006 | return; | 1006 | return; |
1007 | } | 1007 | } |
1008 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); | 1008 | NdisMoveMemory(pOutBuffer, (PCHAR)&ActHdr, sizeof(HEADER_802_11)); |
@@ -1595,7 +1595,7 @@ static VOID PeerMeasureReportAction( | |||
1595 | 1595 | ||
1596 | if ((pMeasureReportInfo = kmalloc(sizeof(MEASURE_RPI_REPORT), GFP_ATOMIC)) == NULL) | 1596 | if ((pMeasureReportInfo = kmalloc(sizeof(MEASURE_RPI_REPORT), GFP_ATOMIC)) == NULL) |
1597 | { | 1597 | { |
1598 | DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", __FUNCTION__, sizeof(MEASURE_RPI_REPORT))); | 1598 | DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", __func__, sizeof(MEASURE_RPI_REPORT))); |
1599 | return; | 1599 | return; |
1600 | } | 1600 | } |
1601 | 1601 | ||
@@ -1704,7 +1704,7 @@ static VOID PeerTpcRepAction( | |||
1704 | { | 1704 | { |
1705 | TpcReqDelete(pAd, pEntry->DialogToken); | 1705 | TpcReqDelete(pAd, pEntry->DialogToken); |
1706 | DBGPRINT(RT_DEBUG_TRACE, ("%s: DialogToken=%x, TxPwr=%d, LinkMargin=%d\n", | 1706 | DBGPRINT(RT_DEBUG_TRACE, ("%s: DialogToken=%x, TxPwr=%d, LinkMargin=%d\n", |
1707 | __FUNCTION__, DialogToken, TpcRepInfo.TxPwr, TpcRepInfo.LinkMargin)); | 1707 | __func__, DialogToken, TpcRepInfo.TxPwr, TpcRepInfo.LinkMargin)); |
1708 | } | 1708 | } |
1709 | } | 1709 | } |
1710 | 1710 | ||
@@ -1820,7 +1820,7 @@ INT Set_MeasureReq_Proc( | |||
1820 | MeasureReqType = simple_strtol(thisChar, 0, 16); | 1820 | MeasureReqType = simple_strtol(thisChar, 0, 16); |
1821 | if (MeasureReqType > 3) | 1821 | if (MeasureReqType > 3) |
1822 | { | 1822 | { |
1823 | DBGPRINT(RT_DEBUG_ERROR, ("%s: unknow MeasureReqType(%d)\n", __FUNCTION__, MeasureReqType)); | 1823 | DBGPRINT(RT_DEBUG_ERROR, ("%s: unknow MeasureReqType(%d)\n", __func__, MeasureReqType)); |
1824 | return TRUE; | 1824 | return TRUE; |
1825 | } | 1825 | } |
1826 | break; | 1826 | break; |
@@ -1832,10 +1832,10 @@ INT Set_MeasureReq_Proc( | |||
1832 | ArgIdx++; | 1832 | ArgIdx++; |
1833 | } | 1833 | } |
1834 | 1834 | ||
1835 | DBGPRINT(RT_DEBUG_TRACE, ("%s::Aid = %d, MeasureReqType=%d MeasureCh=%d\n", __FUNCTION__, Aid, MeasureReqType, MeasureCh)); | 1835 | DBGPRINT(RT_DEBUG_TRACE, ("%s::Aid = %d, MeasureReqType=%d MeasureCh=%d\n", __func__, Aid, MeasureReqType, MeasureCh)); |
1836 | if (!VALID_WCID(Aid)) | 1836 | if (!VALID_WCID(Aid)) |
1837 | { | 1837 | { |
1838 | DBGPRINT(RT_DEBUG_ERROR, ("%s: unknow sta of Aid(%d)\n", __FUNCTION__, Aid)); | 1838 | DBGPRINT(RT_DEBUG_ERROR, ("%s: unknow sta of Aid(%d)\n", __func__, Aid)); |
1839 | return TRUE; | 1839 | return TRUE; |
1840 | } | 1840 | } |
1841 | 1841 | ||
@@ -1860,10 +1860,10 @@ INT Set_TpcReq_Proc( | |||
1860 | 1860 | ||
1861 | Aid = simple_strtol(arg, 0, 16); | 1861 | Aid = simple_strtol(arg, 0, 16); |
1862 | 1862 | ||
1863 | DBGPRINT(RT_DEBUG_TRACE, ("%s::Aid = %d\n", __FUNCTION__, Aid)); | 1863 | DBGPRINT(RT_DEBUG_TRACE, ("%s::Aid = %d\n", __func__, Aid)); |
1864 | if (!VALID_WCID(Aid)) | 1864 | if (!VALID_WCID(Aid)) |
1865 | { | 1865 | { |
1866 | DBGPRINT(RT_DEBUG_ERROR, ("%s: unknow sta of Aid(%d)\n", __FUNCTION__, Aid)); | 1866 | DBGPRINT(RT_DEBUG_ERROR, ("%s: unknow sta of Aid(%d)\n", __func__, Aid)); |
1867 | return TRUE; | 1867 | return TRUE; |
1868 | } | 1868 | } |
1869 | 1869 | ||