Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/mt76.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mt76x0
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-02-06 20:30:08 +0300
committerFelix Fietkau <nbd@nbd.name>2020-02-07 14:33:17 +0300
commitbd0df1b017a88520b69005d108ef8e37ea7233f4 (patch)
tree78f0bec2e6eff317a3966389fc3e4a246c59deec /mt76x0
parent721673759d8229a42ab39a9a7cba15261f1dfcf9 (diff)
mt76: avoid extra RCU synchronization on station removal
Use sta_pre_rcu_remove callback to clear wcid pointer earlier Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'mt76x0')
-rw-r--r--mt76x0/pci.c1
-rw-r--r--mt76x0/usb.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/mt76x0/pci.c b/mt76x0/pci.c
index 88ff5140..0b520ae0 100644
--- a/mt76x0/pci.c
+++ b/mt76x0/pci.c
@@ -67,6 +67,7 @@ static const struct ieee80211_ops mt76x0e_ops = {
.configure_filter = mt76x02_configure_filter,
.bss_info_changed = mt76x02_bss_info_changed,
.sta_state = mt76_sta_state,
+ .sta_pre_rcu_remove = mt76_sta_pre_rcu_remove,
.set_key = mt76x02_set_key,
.conf_tx = mt76x02_conf_tx,
.sw_scan_start = mt76_sw_scan,
diff --git a/mt76x0/usb.c b/mt76x0/usb.c
index c515b41e..90c0bbd6 100644
--- a/mt76x0/usb.c
+++ b/mt76x0/usb.c
@@ -125,6 +125,7 @@ static const struct ieee80211_ops mt76x0u_ops = {
.configure_filter = mt76x02_configure_filter,
.bss_info_changed = mt76x02_bss_info_changed,
.sta_state = mt76_sta_state,
+ .sta_pre_rcu_remove = mt76_sta_pre_rcu_remove,
.set_key = mt76x02_set_key,
.conf_tx = mt76x02_conf_tx,
.sw_scan_start = mt76_sw_scan,