]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
rtl8192e: Rename clashing symbols
authorSean MacLennan <seanm@seanm.ca>
Wed, 30 Nov 2011 20:18:52 +0000 (15:18 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Nov 2011 22:16:42 +0000 (14:16 -0800)
The "rtl8192e: Export symbols" patch exported three functions already
exported by the rtl8192u driver. This patch renames the three functions:
  Dot11d_Init => dot11d_init
  HTUpdateSelfAndPeerSetting => HT_update_self_and_peer_setting
  IsLegalChannel => rtllib_legal_channel

Signed-off-by: Sean MacLennan <seanm@seanm.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/dot11d.c
drivers/staging/rtl8192e/dot11d.h
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_rx.c

index b221103db410848836616c05e7224e84b19bd847..f7b14f8b7b8382d4beafb99cc49f28579dae86f4 100644 (file)
@@ -46,7 +46,7 @@ static struct channel_list ChannelPlan[] = {
          56, 60, 64}, 21}
 };
 
-void Dot11d_Init(struct rtllib_device *ieee)
+void dot11d_init(struct rtllib_device *ieee)
 {
        struct rt_dot11d_info *pDot11dInfo = GET_DOT11D_INFO(ieee);
        pDot11dInfo->bEnabled = false;
@@ -58,7 +58,7 @@ void Dot11d_Init(struct rtllib_device *ieee)
        RESET_CIE_WATCHDOG(ieee);
 
 }
-EXPORT_SYMBOL(Dot11d_Init);
+EXPORT_SYMBOL(dot11d_init);
 
 void Dot11d_Channelmap(u8 channel_plan, struct rtllib_device *ieee)
 {
index 032f7004a7f07e57f88faee554718a4275fb21fb..71f4549a378f636019dbac24493adb7b1521c4d0 100644 (file)
@@ -93,7 +93,7 @@ static inline void cpMacAddr(unsigned char *des, unsigned char *src)
 #define IS_DOT11D_STATE_DONE(__pIeeeDev)                       \
        (GET_DOT11D_INFO(__pIeeeDev)->State == DOT11D_STATE_DONE)
 
-void Dot11d_Init(struct rtllib_device *dev);
+void dot11d_init(struct rtllib_device *dev);
 void Dot11d_Channelmap(u8 channel_plan, struct rtllib_device *ieee);
 void Dot11d_Reset(struct rtllib_device *dev);
 void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
index 4db46a878b61ba4e6311c2dd8c570db0a2fbfc4e..3e705efaaf22c5835ae52b3e373b222dace71860 100644 (file)
@@ -858,7 +858,7 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
        RT_TRACE(COMP_TRACE, "====>%s()====stage:%d, step:%d, channel:%d\n",
                  __func__, *stage, *step, channel);
 
-       if (!IsLegalChannel(priv->rtllib, channel)) {
+       if (!rtllib_legal_channel(priv->rtllib, channel)) {
                RT_TRACE(COMP_ERR, "=============>set to illegal channel:%d\n",
                         channel);
                return true;
index 351504fb775cfca8a24e2c2044071a1f5f8397ed..71adb6b3344d960db17892b0d9ef6b7999aaa855 100644 (file)
@@ -579,7 +579,7 @@ static void rtl8192_update_beacon(void *data)
        struct rtllib_network *net = &ieee->current_network;
 
        if (ieee->pHTInfo->bCurrentHTSupport)
-               HTUpdateSelfAndPeerSetting(ieee, net);
+               HT_update_self_and_peer_setting(ieee, net);
        ieee->pHTInfo->bCurrentRT2RTLongSlotTime =
                 net->bssht.bdRT2RTLongSlotTime;
        ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.RT2RT_HT_Mode;
@@ -1287,7 +1287,7 @@ static short rtl8192_get_channel_map(struct net_device *dev)
                priv->ChannelPlan = COUNTRY_CODE_FCC;
        }
        RT_TRACE(COMP_INIT, "Channel plan is %d\n", priv->ChannelPlan);
-       Dot11d_Init(priv->rtllib);
+       dot11d_init(priv->rtllib);
        Dot11d_Channelmap(priv->ChannelPlan, priv->rtllib);
        for (i = 1; i <= 11; i++)
                (priv->rtllib->active_channel_map)[i] = 1;
index 59ac4507091b213bda4fd2d8ee7251debff35fe2..8b7412980ebbc1c1b218207b206eca90a0babaf3 100644 (file)
@@ -943,8 +943,8 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
        }
 }
 
-void HTUpdateSelfAndPeerSetting(struct rtllib_device *ieee,
-                               struct rtllib_network *pNetwork)
+void HT_update_self_and_peer_setting(struct rtllib_device *ieee,
+                                    struct rtllib_network *pNetwork)
 {
        struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        struct ht_info_ele *pPeerHTInfo =
@@ -955,7 +955,7 @@ void HTUpdateSelfAndPeerSetting(struct rtllib_device *ieee,
                        pHTInfo->CurrentOpMode = pPeerHTInfo->OptMode;
        }
 }
-EXPORT_SYMBOL(HTUpdateSelfAndPeerSetting);
+EXPORT_SYMBOL(HT_update_self_and_peer_setting);
 
 void HTUseDefaultSetting(struct rtllib_device *ieee)
 {
index 3228d368a3fa2b55f663ffd95ae1103be7a51337..a8cae9be6d67db037574efe4125ef7f8f98855e0 100644 (file)
@@ -2775,7 +2775,7 @@ extern void rtllib_rx_mgt(struct rtllib_device *ieee,
                             struct rtllib_rx_stats *stats);
 extern void rtllib_rx_probe_rq(struct rtllib_device *ieee,
                           struct sk_buff *skb);
-extern int IsLegalChannel(struct rtllib_device *rtllib, u8 channel);
+extern int rtllib_legal_channel(struct rtllib_device *rtllib, u8 channel);
 
 /* rtllib_wx.c */
 extern int rtllib_wx_get_scan(struct rtllib_device *ieee,
@@ -2972,8 +2972,8 @@ extern void HTInitializeHTInfo(struct rtllib_device *ieee);
 extern void HTInitializeBssDesc(struct bss_ht *pBssHT);
 extern void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
                                          struct rtllib_network *pNetwork);
-extern void HTUpdateSelfAndPeerSetting(struct rtllib_device *ieee,
-                                      struct rtllib_network *pNetwork);
+extern void HT_update_self_and_peer_setting(struct rtllib_device *ieee,
+                                           struct rtllib_network *pNetwork);
 extern u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet,
                              u8 *pMCSFilter);
 extern u8 MCS_FILTER_ALL[];
index 9655b881e73ffb05205e201553ace545be72ba46..b640c8797f4a100315e2a4a27b2e4514d31be7f3 100644 (file)
@@ -2493,7 +2493,7 @@ static int IsPassiveChannel(struct rtllib_device *rtllib, u8 channel)
        return 0;
 }
 
-int IsLegalChannel(struct rtllib_device *rtllib, u8 channel)
+int rtllib_legal_channel(struct rtllib_device *rtllib, u8 channel)
 {
        if (MAX_CHANNEL_NUMBER < channel) {
                printk(KERN_INFO "%s(): Invalid Channel\n", __func__);
@@ -2504,7 +2504,7 @@ int IsLegalChannel(struct rtllib_device *rtllib, u8 channel)
 
        return 0;
 }
-EXPORT_SYMBOL(IsLegalChannel);
+EXPORT_SYMBOL(rtllib_legal_channel);
 
 static inline void rtllib_process_probe_response(
        struct rtllib_device *ieee,
@@ -2555,7 +2555,7 @@ static inline void rtllib_process_probe_response(
        }
 
 
-       if (!IsLegalChannel(ieee, network->channel))
+       if (!rtllib_legal_channel(ieee, network->channel))
                goto free_network;
 
        if (WLAN_FC_GET_STYPE(beacon->header.frame_ctl) ==