Skip to content

Commit fff6e86

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Rename RTLLIB_NOLINK to MAC80211_NOLINK
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>
1 parent 52ac3ff commit fff6e86

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

drivers/staging/rtl8192e/rtl8192e/rtl_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ static void _rtl92e_watchdog_wq_cb(void *data)
11921192

11931193
if (!rtllib_act_scanning(priv->rtllib, false)) {
11941194
if ((ieee->iw_mode == IW_MODE_INFRA) && (ieee->link_state ==
1195-
RTLLIB_NOLINK) &&
1195+
MAC80211_NOLINK) &&
11961196
(ieee->rf_power_state == rf_on) && !ieee->is_set_key &&
11971197
(!ieee->proto_stoppping) && !ieee->wx_set_enc) {
11981198
if ((ieee->pwr_save_ctrl.ReturnPoint ==

drivers/staging/rtl8192e/rtllib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ struct rtllib_network {
11211121

11221122
enum rtl_link_state {
11231123
/* the card is not linked at all */
1124-
RTLLIB_NOLINK = 0,
1124+
MAC80211_NOLINK = 0,
11251125

11261126
/* RTLLIB_ASSOCIATING* are for BSS client mode
11271127
* the driver shall not perform RX filtering unless

drivers/staging/rtl8192e/rtllib_rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ static inline void rtllib_process_probe_response(
26432643
|| ((ieee->current_network.ssid_len == network->ssid_len) &&
26442644
(strncmp(ieee->current_network.ssid, network->ssid,
26452645
network->ssid_len) == 0) &&
2646-
(ieee->link_state == RTLLIB_NOLINK))))
2646+
(ieee->link_state == MAC80211_NOLINK))))
26472647
renew = 1;
26482648
update_network(ieee, target, network);
26492649
if (renew && (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE))

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh)
508508
* performing a complete syncro scan before conclude
509509
* there are no interesting cell and to create a
510510
* new one. In this case the link state is
511-
* RTLLIB_NOLINK until we found an interesting cell.
511+
* MAC80211_NOLINK until we found an interesting cell.
512512
* If so the ieee8021_new_net, called by the RX path
513513
* will set the state to RTLLIB_LINKED, so we stop
514514
* scanning
@@ -1548,7 +1548,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee,
15481548
/* we are interested in new only if we are not associated
15491549
* and we are not associating / authenticating
15501550
*/
1551-
if (ieee->link_state != RTLLIB_NOLINK)
1551+
if (ieee->link_state != MAC80211_NOLINK)
15521552
return;
15531553

15541554
if ((ieee->iw_mode == IW_MODE_INFRA) && !(net->capability &
@@ -1682,7 +1682,7 @@ static void rtllib_softmac_check_all_nets(struct rtllib_device *ieee)
16821682
* we had found what we are searching for
16831683
*/
16841684

1685-
if (ieee->link_state != RTLLIB_NOLINK)
1685+
if (ieee->link_state != MAC80211_NOLINK)
16861686
break;
16871687

16881688
if (ieee->scan_age == 0 || time_after(target->last_scanned +
@@ -2495,7 +2495,7 @@ static void rtllib_start_ibss_wq(void *data)
24952495
ieee->ssid_set = 1;
24962496
}
24972497

2498-
ieee->link_state = RTLLIB_NOLINK;
2498+
ieee->link_state = MAC80211_NOLINK;
24992499
ieee->mode = WIRELESS_MODE_G;
25002500
/* check if we have this cell in our network list */
25012501
rtllib_softmac_check_all_nets(ieee);
@@ -2514,11 +2514,11 @@ static void rtllib_start_ibss_wq(void *data)
25142514
* scan, that will stop at the first round because it sees the state
25152515
* associated.
25162516
*/
2517-
if (ieee->link_state == RTLLIB_NOLINK)
2517+
if (ieee->link_state == MAC80211_NOLINK)
25182518
rtllib_start_scan_syncro(ieee, 0);
25192519

25202520
/* the network definitively is not here.. create a new cell */
2521-
if (ieee->link_state == RTLLIB_NOLINK) {
2521+
if (ieee->link_state == MAC80211_NOLINK) {
25222522
netdev_info(ieee->dev, "creating new IBSS cell\n");
25232523
ieee->current_network.channel = ieee->bss_start_channel;
25242524
if (!ieee->wap_set)
@@ -2623,7 +2623,7 @@ static void rtllib_start_bss(struct rtllib_device *ieee)
26232623
*/
26242624
spin_lock_irqsave(&ieee->lock, flags);
26252625

2626-
if (ieee->link_state == RTLLIB_NOLINK)
2626+
if (ieee->link_state == MAC80211_NOLINK)
26272627
rtllib_start_scan(ieee);
26282628
spin_unlock_irqrestore(&ieee->lock, flags);
26292629
}
@@ -2643,7 +2643,7 @@ void rtllib_disassociate(struct rtllib_device *ieee)
26432643

26442644
if (IS_DOT11D_ENABLE(ieee))
26452645
dot11d_reset(ieee);
2646-
ieee->link_state = RTLLIB_NOLINK;
2646+
ieee->link_state = MAC80211_NOLINK;
26472647
ieee->is_set_key = false;
26482648
ieee->wap_set = 0;
26492649

@@ -2665,11 +2665,11 @@ static void rtllib_associate_retry_wq(void *data)
26652665
if (ieee->link_state != RTLLIB_ASSOCIATING_RETRY)
26662666
goto exit;
26672667

2668-
/* until we do not set the state to RTLLIB_NOLINK
2668+
/* until we do not set the state to MAC80211_NOLINK
26692669
* there are no possibility to have someone else trying
26702670
* to start an association procedure (we get here with
26712671
* ieee->link_state = RTLLIB_ASSOCIATING).
2672-
* When we set the state to RTLLIB_NOLINK it is possible
2672+
* When we set the state to MAC80211_NOLINK it is possible
26732673
* that the RX path run an attempt to associate, but
26742674
* both rtllib_softmac_check_all_nets and the
26752675
* RX path works with ieee->lock held so there are no
@@ -2679,13 +2679,13 @@ static void rtllib_associate_retry_wq(void *data)
26792679
* state and we are going to start the scan.
26802680
*/
26812681
ieee->beinretry = true;
2682-
ieee->link_state = RTLLIB_NOLINK;
2682+
ieee->link_state = MAC80211_NOLINK;
26832683

26842684
rtllib_softmac_check_all_nets(ieee);
26852685

26862686
spin_lock_irqsave(&ieee->lock, flags);
26872687

2688-
if (ieee->link_state == RTLLIB_NOLINK)
2688+
if (ieee->link_state == MAC80211_NOLINK)
26892689
rtllib_start_scan(ieee);
26902690
spin_unlock_irqrestore(&ieee->lock, flags);
26912691

@@ -2763,7 +2763,7 @@ void rtllib_stop_protocol(struct rtllib_device *ieee, u8 shutdown)
27632763
rtllib_stop_scan(ieee);
27642764

27652765
if (ieee->link_state <= RTLLIB_ASSOCIATING_AUTHENTICATED)
2766-
ieee->link_state = RTLLIB_NOLINK;
2766+
ieee->link_state = MAC80211_NOLINK;
27672767

27682768
if (ieee->link_state == RTLLIB_LINKED) {
27692769
if (ieee->iw_mode == IW_MODE_INFRA)
@@ -2845,7 +2845,7 @@ int rtllib_softmac_init(struct rtllib_device *ieee)
28452845

28462846
memset(&ieee->current_network, 0, sizeof(struct rtllib_network));
28472847

2848-
ieee->link_state = RTLLIB_NOLINK;
2848+
ieee->link_state = MAC80211_NOLINK;
28492849
for (i = 0; i < 5; i++)
28502850
ieee->seq_ctrl[i] = 0;
28512851
ieee->dot11d_info = kzalloc(sizeof(struct rt_dot11d_info), GFP_ATOMIC);
@@ -3036,7 +3036,7 @@ static void rtllib_MgntDisconnectIBSS(struct rtllib_device *rtllib)
30363036
u8 i;
30373037
bool bFilterOutNonAssociatedBSSID = false;
30383038

3039-
rtllib->link_state = RTLLIB_NOLINK;
3039+
rtllib->link_state = MAC80211_NOLINK;
30403040

30413041
for (i = 0; i < 6; i++)
30423042
rtllib->current_network.bssid[i] = 0x55;
@@ -3063,7 +3063,7 @@ static void rtllib_MlmeDisassociateRequest(struct rtllib_device *rtllib,
30633063
RemovePeerTS(rtllib, asSta);
30643064

30653065
if (memcmp(rtllib->current_network.bssid, asSta, 6) == 0) {
3066-
rtllib->link_state = RTLLIB_NOLINK;
3066+
rtllib->link_state = MAC80211_NOLINK;
30673067

30683068
for (i = 0; i < 6; i++)
30693069
rtllib->current_network.bssid[i] = 0x22;
@@ -3092,7 +3092,7 @@ rtllib_MgntDisconnectAP(
30923092
rtllib_MlmeDisassociateRequest(rtllib, rtllib->current_network.bssid,
30933093
asRsn);
30943094

3095-
rtllib->link_state = RTLLIB_NOLINK;
3095+
rtllib->link_state = MAC80211_NOLINK;
30963096
}
30973097

30983098
bool rtllib_MgntDisconnect(struct rtllib_device *rtllib, u8 asRsn)

0 commit comments

Comments
 (0)