Skip to content

Commit e363d34

Browse files
Adrian ChaddAdrian Chadd
Adrian Chadd
authored and
Adrian Chadd
committed
[athp] add debug section for BSS config, move the WME setup into it
This is also pretty loud and now i know it works fine, it can be off by default. Whilst here sprinkle some comments and #if 0 stuff around some stuff.
1 parent 85699e4 commit e363d34

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

otus/freebsd/src/sys/dev/athp/if_athp_debug.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
#define ATH10K_DBG_KEYCACHE 0x100000000ULL
5555
#define ATH10K_DBG_BEACON 0x200000000ULL
5656
#define ATH10K_DBG_HTT_TX 0x400000000ULL
57+
#define ATH10K_DBG_BSS_CONF 0x800000000ULL
5758
#define ATH10K_DBG_ANY 0xffffffff
5859

5960
enum ath10k_pktlog_filter {

otus/freebsd/src/sys/dev/athp/if_athp_mac.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6840,13 +6840,9 @@ static int ath10k_conf_tx(struct ath10k *ar,
68406840
*/
68416841
p->txop = IEEE80211_TXOP_TO_US(wmep->wmep_txopLimit);
68426842

6843-
ath10k_warn(ar, "%s: ac=%d, cwmin=%d, cwmax=%d, aifs=%d, txop=%d\n",
6844-
__func__,
6845-
ac,
6846-
p->cwmin,
6847-
p->cwmax,
6848-
p->aifs,
6849-
p->txop);
6843+
ath10k_dbg(ar, ATH10K_DBG_BSS_CONF,
6844+
"%s: ac=%d, cwmin=%d, cwmax=%d, aifs=%d, txop=%d\n",
6845+
__func__, ac, p->cwmin, p->cwmax, p->aifs, p->txop);
68506846

68516847
/*
68526848
* This is configuring the VAP WME parameters, not the per-node
@@ -6878,6 +6874,10 @@ static int ath10k_conf_tx(struct ath10k *ar,
68786874
return ret;
68796875
}
68806876

6877+
/*
6878+
* Note: remain on channel has to do with P2P off-channel
6879+
* work like P2P setup.
6880+
*/
68816881
#if 0
68826882

68836883
#define ATH10K_ROC_TIMEOUT_HZ (2)
@@ -6985,7 +6985,9 @@ static int ath10k_cancel_remain_on_channel(struct ieee80211_hw *hw)
69856985

69866986
return 0;
69876987
}
6988+
#endif
69886989

6990+
#if 0
69896991
/*
69906992
* Both RTS and Fragmentation threshold are interface-specific
69916993
* in ath10k, but device-specific in mac80211.

0 commit comments

Comments
 (0)