staging: rtl8192e: Rename RTLLIB_NOLINK to MAC80211_NOLINK
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 17 Jun 2023 13:57:23 +0000 (15:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jun 2023 12:54:51 +0000 (14:54 +0200)
Rename RTLLIB_NOLINK to MAC80211_NOLINK to align with rtlwifi driver.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/74feefdf800304deaf918efbc04344865f7aa01d.1687007788.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_rx.c
drivers/staging/rtl8192e/rtllib_softmac.c

index 7b7500c6b1815a5cd5b9363593e45429a0501b82..b4c618d37a719caacf91ae75fca3e6255b61a5f9 100644 (file)
@@ -1192,7 +1192,7 @@ static void _rtl92e_watchdog_wq_cb(void *data)
 
        if (!rtllib_act_scanning(priv->rtllib, false)) {
                if ((ieee->iw_mode == IW_MODE_INFRA) && (ieee->link_state ==
-                    RTLLIB_NOLINK) &&
+                    MAC80211_NOLINK) &&
                     (ieee->rf_power_state == rf_on) && !ieee->is_set_key &&
                     (!ieee->proto_stoppping) && !ieee->wx_set_enc) {
                        if ((ieee->pwr_save_ctrl.ReturnPoint ==
index 933656e9fc8ae869d401e934395b856354efcb8c..68f0e1426b35998449406967ac6c44e994de7394 100644 (file)
@@ -1121,7 +1121,7 @@ struct rtllib_network {
 
 enum rtl_link_state {
        /* the card is not linked at all */
-       RTLLIB_NOLINK = 0,
+       MAC80211_NOLINK = 0,
 
        /* RTLLIB_ASSOCIATING* are for BSS client mode
         * the driver shall not perform RX filtering unless
index 9beac92c613f261bbb67abbc8b6d527337289b61..68f1393b1b6337127d8c727c4a39c37308f3af3b 100644 (file)
@@ -2643,7 +2643,7 @@ static inline void rtllib_process_probe_response(
                    || ((ieee->current_network.ssid_len == network->ssid_len) &&
                    (strncmp(ieee->current_network.ssid, network->ssid,
                    network->ssid_len) == 0) &&
-                   (ieee->link_state == RTLLIB_NOLINK))))
+                   (ieee->link_state == MAC80211_NOLINK))))
                        renew = 1;
                update_network(ieee, target, network);
                if (renew && (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE))
index 242bb5c633e91611e3feb6ef9490a6e85c50bbb8..bbb0f61c851d56bd6e73e52ede8452a81e888242 100644 (file)
@@ -508,7 +508,7 @@ static void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh)
                 *    performing a complete syncro scan before conclude
                 *    there are no interesting cell and to create a
                 *    new one. In this case the link state is
-                *    RTLLIB_NOLINK until we found an interesting cell.
+                *    MAC80211_NOLINK until we found an interesting cell.
                 *    If so the ieee8021_new_net, called by the RX path
                 *    will set the state to RTLLIB_LINKED, so we stop
                 *    scanning
@@ -1548,7 +1548,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee,
        /* we are interested in new only if we are not associated
         * and we are not associating / authenticating
         */
-       if (ieee->link_state != RTLLIB_NOLINK)
+       if (ieee->link_state != MAC80211_NOLINK)
                return;
 
        if ((ieee->iw_mode == IW_MODE_INFRA) && !(net->capability &
@@ -1682,7 +1682,7 @@ static void rtllib_softmac_check_all_nets(struct rtllib_device *ieee)
                 * we had found what we are searching for
                 */
 
-               if (ieee->link_state != RTLLIB_NOLINK)
+               if (ieee->link_state != MAC80211_NOLINK)
                        break;
 
                if (ieee->scan_age == 0 || time_after(target->last_scanned +
@@ -2495,7 +2495,7 @@ static void rtllib_start_ibss_wq(void *data)
                ieee->ssid_set = 1;
        }
 
-       ieee->link_state = RTLLIB_NOLINK;
+       ieee->link_state = MAC80211_NOLINK;
        ieee->mode = WIRELESS_MODE_G;
        /* check if we have this cell in our network list */
        rtllib_softmac_check_all_nets(ieee);
@@ -2514,11 +2514,11 @@ static void rtllib_start_ibss_wq(void *data)
         * scan, that will stop at the first round because it sees the state
         * associated.
         */
-       if (ieee->link_state == RTLLIB_NOLINK)
+       if (ieee->link_state == MAC80211_NOLINK)
                rtllib_start_scan_syncro(ieee, 0);
 
        /* the network definitively is not here.. create a new cell */
-       if (ieee->link_state == RTLLIB_NOLINK) {
+       if (ieee->link_state == MAC80211_NOLINK) {
                netdev_info(ieee->dev, "creating new IBSS cell\n");
                ieee->current_network.channel = ieee->bss_start_channel;
                if (!ieee->wap_set)
@@ -2623,7 +2623,7 @@ static void rtllib_start_bss(struct rtllib_device *ieee)
         */
        spin_lock_irqsave(&ieee->lock, flags);
 
-       if (ieee->link_state == RTLLIB_NOLINK)
+       if (ieee->link_state == MAC80211_NOLINK)
                rtllib_start_scan(ieee);
        spin_unlock_irqrestore(&ieee->lock, flags);
 }
@@ -2643,7 +2643,7 @@ void rtllib_disassociate(struct rtllib_device *ieee)
 
        if (IS_DOT11D_ENABLE(ieee))
                dot11d_reset(ieee);
-       ieee->link_state = RTLLIB_NOLINK;
+       ieee->link_state = MAC80211_NOLINK;
        ieee->is_set_key = false;
        ieee->wap_set = 0;
 
@@ -2665,11 +2665,11 @@ static void rtllib_associate_retry_wq(void *data)
        if (ieee->link_state != RTLLIB_ASSOCIATING_RETRY)
                goto exit;
 
-       /* until we do not set the state to RTLLIB_NOLINK
+       /* until we do not set the state to MAC80211_NOLINK
         * there are no possibility to have someone else trying
         * to start an association procedure (we get here with
         * ieee->link_state = RTLLIB_ASSOCIATING).
-        * When we set the state to RTLLIB_NOLINK it is possible
+        * When we set the state to MAC80211_NOLINK it is possible
         * that the RX path run an attempt to associate, but
         * both rtllib_softmac_check_all_nets and the
         * RX path works with ieee->lock held so there are no
@@ -2679,13 +2679,13 @@ static void rtllib_associate_retry_wq(void *data)
         * state and we are going to start the scan.
         */
        ieee->beinretry = true;
-       ieee->link_state = RTLLIB_NOLINK;
+       ieee->link_state = MAC80211_NOLINK;
 
        rtllib_softmac_check_all_nets(ieee);
 
        spin_lock_irqsave(&ieee->lock, flags);
 
-       if (ieee->link_state == RTLLIB_NOLINK)
+       if (ieee->link_state == MAC80211_NOLINK)
                rtllib_start_scan(ieee);
        spin_unlock_irqrestore(&ieee->lock, flags);
 
@@ -2763,7 +2763,7 @@ void rtllib_stop_protocol(struct rtllib_device *ieee, u8 shutdown)
        rtllib_stop_scan(ieee);
 
        if (ieee->link_state <= RTLLIB_ASSOCIATING_AUTHENTICATED)
-               ieee->link_state = RTLLIB_NOLINK;
+               ieee->link_state = MAC80211_NOLINK;
 
        if (ieee->link_state == RTLLIB_LINKED) {
                if (ieee->iw_mode == IW_MODE_INFRA)
@@ -2845,7 +2845,7 @@ int rtllib_softmac_init(struct rtllib_device *ieee)
 
        memset(&ieee->current_network, 0, sizeof(struct rtllib_network));
 
-       ieee->link_state = RTLLIB_NOLINK;
+       ieee->link_state = MAC80211_NOLINK;
        for (i = 0; i < 5; i++)
                ieee->seq_ctrl[i] = 0;
        ieee->dot11d_info = kzalloc(sizeof(struct rt_dot11d_info), GFP_ATOMIC);
@@ -3036,7 +3036,7 @@ static void rtllib_MgntDisconnectIBSS(struct rtllib_device *rtllib)
        u8      i;
        bool    bFilterOutNonAssociatedBSSID = false;
 
-       rtllib->link_state = RTLLIB_NOLINK;
+       rtllib->link_state = MAC80211_NOLINK;
 
        for (i = 0; i < 6; i++)
                rtllib->current_network.bssid[i] = 0x55;
@@ -3063,7 +3063,7 @@ static void rtllib_MlmeDisassociateRequest(struct rtllib_device *rtllib,
        RemovePeerTS(rtllib, asSta);
 
        if (memcmp(rtllib->current_network.bssid, asSta, 6) == 0) {
-               rtllib->link_state = RTLLIB_NOLINK;
+               rtllib->link_state = MAC80211_NOLINK;
 
                for (i = 0; i < 6; i++)
                        rtllib->current_network.bssid[i] = 0x22;
@@ -3092,7 +3092,7 @@ rtllib_MgntDisconnectAP(
        rtllib_MlmeDisassociateRequest(rtllib, rtllib->current_network.bssid,
                                       asRsn);
 
-       rtllib->link_state = RTLLIB_NOLINK;
+       rtllib->link_state = MAC80211_NOLINK;
 }
 
 bool rtllib_MgntDisconnect(struct rtllib_device *rtllib, u8 asRsn)