Staging: rtl8723bs: fix names in rtw_mlme.h
authorMarco Cesati <marcocesati@gmail.com>
Wed, 17 Mar 2021 22:20:48 +0000 (23:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Mar 2021 09:16:45 +0000 (10:16 +0100)
This commit converts names of structs / enums
in include/rtw_mlme.h from ALL_CAPS format to lowercase

Signed-off-by: Marco Cesati <marcocesati@gmail.com>
Link: https://lore.kernel.org/r/20210317222130.29528-2-marcocesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
drivers/staging/rtl8723bs/hal/hal_btcoex.c
drivers/staging/rtl8723bs/include/rtw_mlme.h
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h

index e60a2ed32de53c7380cbca7bae138e7788806156..416268f26dc312a43d0d37b5a1b925ed86d0e11b 100644 (file)
@@ -4133,7 +4133,7 @@ Following are some utility functions for WiFi MLME
 void site_survey(struct adapter *padapter)
 {
        unsigned char   survey_channel = 0, val8;
-       enum RT_SCAN_TYPE       ScanType = SCAN_PASSIVE;
+       enum rt_scan_type       ScanType = SCAN_PASSIVE;
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
        u32 initialgain = 0;
index fb279b662122cef8fa2632d7dee3655fa97d56e1..0b339c1558606017bd22f6aad3f4b652b751a13f 100644 (file)
@@ -445,7 +445,7 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
 
        case BTC_GET_U4_WIFI_TRAFFIC_DIRECTION:
                {
-                       struct RT_LINK_DETECT_T *plinkinfo;
+                       struct rt_link_detect_t *plinkinfo;
                        plinkinfo = &padapter->mlmepriv.LinkDetectInfo;
 
                        if (plinkinfo->NumTxOkInPeriod > plinkinfo->NumRxOkInPeriod)
index 1ebc1e1833813958219f8f0410a489a8af1de2b4..ffcceb1fdde6e7a32f65878ee1b05b0ca0471ccf 100644 (file)
@@ -81,13 +81,13 @@ enum dot11AuthAlgrthmNum {
 };
 
 /*  Scan type including active and passive scan. */
-enum RT_SCAN_TYPE {
+enum rt_scan_type {
        SCAN_PASSIVE,
        SCAN_ACTIVE,
        SCAN_MIX,
 };
 
-enum  _BAND {
+enum  _band {
        GHZ24_50 = 0,
        GHZ_50,
        GHZ_24,
@@ -101,7 +101,7 @@ enum DriverInterface {
        DRIVER_CFG80211 = 2
 };
 
-enum SCAN_RESULT_TYPE {
+enum scan_result_type {
        SCAN_RESULT_P2P_ONLY = 0,               /*      Will return all the P2P devices. */
        SCAN_RESULT_ALL = 1,                    /*      Will return all the scanned device, include AP. */
        SCAN_RESULT_WFD_TYPE = 2                /*      Will just return the correct WFD device. */
@@ -134,7 +134,7 @@ struct sitesurvey_ctrl {
        struct timer_list       sitesurvey_ctrl_timer;
 };
 
-struct RT_LINK_DETECT_T {
+struct rt_link_detect_t {
        u32                     NumTxOkInPeriod;
        u32                     NumRxOkInPeriod;
        u32                     NumRxUnicastOkInPeriod;
@@ -385,12 +385,12 @@ struct mlme_priv {
 
        struct ht_priv htpriv;
 
-       struct RT_LINK_DETECT_T LinkDetectInfo;
+       struct rt_link_detect_t LinkDetectInfo;
        struct timer_list       dynamic_chk_timer; /* dynamic/periodic check timer */
 
        u8 acm_mask; /*  for wmm acm mask */
        u8 ChannelPlan;
-       enum RT_SCAN_TYPE       scan_mode; /*  active: 1, passive: 0 */
+       enum rt_scan_type       scan_mode; /*  active: 1, passive: 0 */
 
        u8 *wps_probe_req_ie;
        u32 wps_probe_req_ie_len;
index e593293bb9c4944aec19198a352b5f4a9ef6b7cd..0f4dd33b6e555ac05412f5c12fdfa4647e6e86bb 100644 (file)
@@ -419,7 +419,7 @@ struct mlme_ext_info {
 /*  The channel information about this channel including joining, scanning, and power constraints. */
 struct RT_CHANNEL_INFO {
        u8              ChannelNum;             /*  The channel number. */
-       enum RT_SCAN_TYPE       ScanType;               /*  Scan type such as passive or active scan. */
+       enum rt_scan_type       ScanType;               /*  Scan type such as passive or active scan. */
 };
 
 int rtw_ch_set_search_ch(struct RT_CHANNEL_INFO *ch_set, const u32 ch);