aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamon Fontes <ramonreisfontes@gmail.com>2019-10-10 15:13:07 -0300
committerJohannes Berg <johannes.berg@intel.com>2019-10-11 10:33:34 +0200
commit7dfd8ac327301f302b03072066c66eb32578e940 (patch)
tree9faa3fb478d8ed0f7a44149d9eed2d1e1b0b7d1e
parentmac80211_hwsim: add more 5GHz channels, 5/10 MHz support (diff)
downloadlinux-dev-7dfd8ac327301f302b03072066c66eb32578e940.tar.xz
linux-dev-7dfd8ac327301f302b03072066c66eb32578e940.zip
mac80211_hwsim: add support for OCB
OCB (Outside the Context of a BSS) interfaces are the implementation of 802.11p, support that. Signed-off-by: Ramon Fontes <ramonreisfontes@gmail.com> Link: https://lore.kernel.org/r/20191010181307.11821-2-ramonreisfontes@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index e638553d3c82..9dfa354eb1cb 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -1570,7 +1570,8 @@ static void mac80211_hwsim_beacon_tx(void *arg, u8 *mac,
if (vif->type != NL80211_IFTYPE_AP &&
vif->type != NL80211_IFTYPE_MESH_POINT &&
- vif->type != NL80211_IFTYPE_ADHOC)
+ vif->type != NL80211_IFTYPE_ADHOC &&
+ vif->type != NL80211_IFTYPE_OCB)
return;
skb = ieee80211_beacon_get(hw, vif);
@@ -2744,7 +2745,8 @@ static void mac80211_hwsim_he_capab(struct ieee80211_supported_band *sband)
BIT(NL80211_IFTYPE_P2P_CLIENT) | \
BIT(NL80211_IFTYPE_P2P_GO) | \
BIT(NL80211_IFTYPE_ADHOC) | \
- BIT(NL80211_IFTYPE_MESH_POINT))
+ BIT(NL80211_IFTYPE_MESH_POINT) | \
+ BIT(NL80211_IFTYPE_OCB))
static int mac80211_hwsim_new_radio(struct genl_info *info,
struct hwsim_new_radio_params *param)