Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/net80211 Fix build. Especially non IEEE80211_DEBUG.
details: https://anonhg.NetBSD.org/src-all/rev/6f7d59b9e72f
branches: trunk
changeset: 1025332:6f7d59b9e72f
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Sun Aug 16 17:12:03 2020 +1000
description:
Fix build. Especially non IEEE80211_DEBUG.
diffstat:
sys/net80211/ieee80211_ht.c | 8 +++++++-
sys/net80211/ieee80211_netbsd.c | 2 ++
2 files changed, 9 insertions(+), 1 deletions(-)
diffs (48 lines):
diff -r f69387bf723c -r 6f7d59b9e72f sys/net80211/ieee80211_ht.c
--- a/sys/net80211/ieee80211_ht.c Sun Aug 16 10:48:24 2020 +1000
+++ b/sys/net80211/ieee80211_ht.c Sun Aug 16 17:12:03 2020 +1000
@@ -2514,16 +2514,20 @@
int tid;
#ifdef IEEE80211_DEBUG
int bufsiz;
+ int amsdu;
#endif
- int amsdu;
dialogtoken = frm[2];
code = le16dec(frm+3);
baparamset = le16dec(frm+5);
tid = MS(baparamset, IEEE80211_BAPS_TID);
+#ifdef IEEE80211_DEBUG
bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ);
+#endif
policy = MS(baparamset, IEEE80211_BAPS_POLICY);
+#ifdef IEEE80211_DEBUG
amsdu = !! MS(baparamset, IEEE80211_BAPS_AMSDU);
+#endif
batimeout = le16dec(frm+7);
tap = &ni->ni_tx_ampdu[tid];
@@ -2598,7 +2602,9 @@
int tid;
baparamset = le16dec(frm+2);
+#ifdef IEEE80211_DEBUG
code = le16dec(frm+4);
+#endif
tid = MS(baparamset, IEEE80211_DELBAPS_TID);
diff -r f69387bf723c -r 6f7d59b9e72f sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c Sun Aug 16 10:48:24 2020 +1000
+++ b/sys/net80211/ieee80211_netbsd.c Sun Aug 16 17:12:03 2020 +1000
@@ -336,7 +336,9 @@
SYSCTL_SETUP(sysctl_net_wlan_setup, "sysctl net.wlan subtree setup")
{
+#ifdef notyet
int rc;
+#endif
const struct sysctlnode *wlan_node;
if (sysctl_createv(clog, 0, NULL, &wlan_node,
Home |
Main Index |
Thread Index |
Old Index