nl80211: Set control port for NL80211_CMD_COMMAND
authorJouni Malinen <j@w1.fi>
Mon, 30 Dec 2013 16:21:04 +0000 (18:21 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 31 Dec 2013 07:15:49 +0000 (09:15 +0200)
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>

src/drivers/driver_nl80211.c

index 65e449b..624e5fa 100644 (file)
@@ -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);