staging: rtl8192e: Rename HwRateToMRate90
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sun, 20 Sep 2015 08:13:13 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:33:43 +0000 (03:33 +0200)
Use naming schema found in other rtlwifi devices.
Rename HwRateToMRate90 to _rtl92e_rate_hw_to_mgn.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c

index 353e3fedb79e0b6b3c1e010a3d2be5fb8541282e..a8530525e50abad85faa087bf32270acb594c637 100644 (file)
@@ -1324,7 +1324,7 @@ void  rtl92e_fill_tx_cmd_desc(struct net_device *dev, struct tx_desc_cmd *entry,
        entry->OWN = 1;
 }
 
-static u8 HwRateToMRate90(bool bIsHT, u8 rate)
+static u8 _rtl92e_rate_hw_to_mgn(bool bIsHT, u8 rate)
 {
        u8  ret_rate = 0x02;
 
@@ -1369,7 +1369,7 @@ static u8 HwRateToMRate90(bool bIsHT, u8 rate)
 
                default:
                        RT_TRACE(COMP_RECV,
-                                "HwRateToMRate90(): Non supportedRate [%x], bIsHT = %d!!!\n",
+                                "_rtl92e_rate_hw_to_mgn(): Non supportedRate [%x], bIsHT = %d!!!\n",
                                 rate, bIsHT);
                        break;
                }
@@ -1430,7 +1430,7 @@ static u8 HwRateToMRate90(bool bIsHT, u8 rate)
 
                default:
                        RT_TRACE(COMP_RECV,
-                                "HwRateToMRate90(): Non supported Rate [%x], bIsHT = %d!!!\n",
+                                "_rtl92e_rate_hw_to_mgn(): Non supported Rate [%x], bIsHT = %d!!!\n",
                                 rate, bIsHT);
                        break;
                }
@@ -2054,8 +2054,8 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
 
        pDrvInfo = (struct rx_fwinfo *)(skb->data + stats->RxBufShift);
 
-       stats->rate = HwRateToMRate90((bool)pDrvInfo->RxHT,
-                                    (u8)pDrvInfo->RxRate);
+       stats->rate = _rtl92e_rate_hw_to_mgn((bool)pDrvInfo->RxHT,
+                                            (u8)pDrvInfo->RxRate);
        stats->bShortPreamble = pDrvInfo->SPLCP;
 
        rtl8192_UpdateReceivedRateHistogramStatistics(dev, stats);