summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bwfm_pci.h
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2018-01-05 23:30:17 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2018-01-05 23:30:17 +0000
commit2b596a4540a558eff107a6220903fe32e6bdc879 (patch)
tree29a6d91dd91e131ea9194e659b388757ec531abf /sys/dev/pci/if_bwfm_pci.h
parentc69566957af5fafcccacb418ecae3516be5eaf86 (diff)
To send out packets we need to create a flowring. Acting as station,
we typically have about four flowrings per priority. As access point we apparently need one, or four considering the priorities, flowrings per client. For now let's start with a single TX flowring. To setup a flowring we need to send a create request and can only start sending packets as soon as we are told that the ring is created. With this we can now do actual network traffic.
Diffstat (limited to 'sys/dev/pci/if_bwfm_pci.h')
-rw-r--r--sys/dev/pci/if_bwfm_pci.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bwfm_pci.h b/sys/dev/pci/if_bwfm_pci.h
index afb29bf9f4d..4c5da6fb2ed 100644
--- a/sys/dev/pci/if_bwfm_pci.h
+++ b/sys/dev/pci/if_bwfm_pci.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bwfm_pci.h,v 1.1 2017/12/24 19:50:56 patrick Exp $ */
+/* $OpenBSD: if_bwfm_pci.h,v 1.2 2018/01/05 23:30:16 patrick Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2017 Patrick Wildt <patrick@blueri.se>
@@ -168,8 +168,10 @@ struct msgbuf_ioctl_req_hdr {
struct msgbuf_tx_msghdr {
struct msgbuf_common_hdr msg;
- uint8_t txhdr[ETHER_ADDR_LEN];
+ uint8_t txhdr[ETHER_HDR_LEN];
uint8_t flags;
+#define BWFM_MSGBUF_PKT_FLAGS_FRAME_802_3 (1 << 0)
+#define BWFM_MSGBUF_PKT_FLAGS_PRIO_SHIFT 5
uint8_t seg_cnt;
struct msgbuf_buf_addr metadata_buf_addr;
struct msgbuf_buf_addr data_buf_addr;