aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2017-01-10 07:21:07 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2017-01-10 07:21:07 +0000
commit86fee26330807e433ca2e8a94fa6657c5d44e09e (patch)
treec69558c3fbf0956703d9a7c2cd5a080e56bac52a /sys/net80211
parent33740d0754d419c7d147b0b83d31979450076b50 (diff)
downloadsrc-86fee26330807e433ca2e8a94fa6657c5d44e09e.tar.gz
src-86fee26330807e433ca2e8a94fa6657c5d44e09e.zip
[net80211] add VHT action frame placeholders for when it's time to implement.
Notes
Notes: svn path=/head/; revision=311860
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_vht.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_vht.c b/sys/net80211/ieee80211_vht.c
index 15012f254e70..deb3811026af 100644
--- a/sys/net80211/ieee80211_vht.c
+++ b/sys/net80211/ieee80211_vht.c
@@ -85,9 +85,49 @@ __FBSDID("$FreeBSD$");
* Look at mac80211/vht.c:ieee80211_vht_handle_opmode() for further details.
*/
+static int
+vht_recv_action_placeholder(struct ieee80211_node *ni,
+ const struct ieee80211_frame *wh,
+ const uint8_t *frm, const uint8_t *efrm)
+{
+
+ ieee80211_note(ni->ni_vap, "%s: called; fc=0x%.2x/0x%.2x",
+ __func__,
+ wh->i_fc[0],
+ wh->i_fc[1]);
+
+ return (0);
+}
+
+static int
+vht_send_action_placeholder(struct ieee80211_node *ni,
+ int category, int action, void *arg0)
+{
+
+ ieee80211_note(ni->ni_vap, "%s: called; category=%d, action=%d",
+ __func__,
+ category,
+ action);
+ return (EINVAL);
+}
+
static void
ieee80211_vht_init(void)
{
+
+ ieee80211_recv_action_register(IEEE80211_ACTION_CAT_VHT,
+ WLAN_ACTION_VHT_COMPRESSED_BF, vht_recv_action_placeholder);
+ ieee80211_recv_action_register(IEEE80211_ACTION_CAT_VHT,
+ WLAN_ACTION_VHT_GROUPID_MGMT, vht_recv_action_placeholder);
+ ieee80211_recv_action_register(IEEE80211_ACTION_CAT_VHT,
+ WLAN_ACTION_VHT_OPMODE_NOTIF, vht_recv_action_placeholder);
+
+ ieee80211_send_action_register(IEEE80211_ACTION_CAT_VHT,
+ WLAN_ACTION_VHT_COMPRESSED_BF, vht_send_action_placeholder);
+ ieee80211_send_action_register(IEEE80211_ACTION_CAT_VHT,
+ WLAN_ACTION_VHT_GROUPID_MGMT, vht_send_action_placeholder);
+ ieee80211_send_action_register(IEEE80211_ACTION_CAT_VHT,
+ WLAN_ACTION_VHT_OPMODE_NOTIF, vht_send_action_placeholder);
}
SYSINIT(wlan_vht, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_vht_init, NULL);