aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'wlantest/rx_data.c')
-rw-r--r--wlantest/rx_data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wlantest/rx_data.c b/wlantest/rx_data.c
index fc264ac..a8312b6 100644
--- a/wlantest/rx_data.c
+++ b/wlantest/rx_data.c
@@ -210,6 +210,8 @@ static void rx_data_bss_prot(struct wlantest *wt,
if (bss == NULL)
return;
sta = sta_get(bss, hdr->addr2);
+ if (sta)
+ sta->counters[WLANTEST_STA_COUNTER_PROT_DATA_TX]++;
} else if (fc & WLAN_FC_FROMDS) {
bss = bss_get(wt, hdr->addr2);
if (bss == NULL)