aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-30 16:21:04 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-31 07:15:49 (GMT)
commita565084f96b9634926ec46f219e963fd1c32af0b (patch)
treeea224799dc88cb24fce13d48c004b40b877c240f /src
parentef93abded7784a160b1d3f4386746d61e937cb61 (diff)
downloadhostap-a565084f96b9634926ec46f219e963fd1c32af0b.zip
hostap-a565084f96b9634926ec46f219e963fd1c32af0b.tar.gz
hostap-a565084f96b9634926ec46f219e963fd1c32af0b.tar.bz2
nl80211: Set control port for NL80211_CMD_COMMAND
NL80211_ATTR_CONTROL_PORT was previously set only for NL80211_CMD_ASSOCIATE, but it should also be set when using NL80211_CMD_COMMAND (driver-based SME) even though none of the current non-mac80211 drivers use this. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 65e449b..624e5fa 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -8308,6 +8308,8 @@ skip_auth_type:
NLA_PUT_U32(msg, NL80211_ATTR_USE_MFP, NL80211_MFP_REQUIRED);
#endif /* CONFIG_IEEE80211W */
+ NLA_PUT_FLAG(msg, NL80211_ATTR_CONTROL_PORT);
+
if (params->disable_ht)
NLA_PUT_FLAG(msg, NL80211_ATTR_DISABLE_HT);