nl80211: Document the expectation for NL80211_ATTR_IE in NL80211_CMD_CONNECT
authorSunil Dutt <usdutt@codeaurora.org>
Fri, 13 Sep 2019 12:41:44 +0000 (18:11 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Oct 2019 11:48:30 +0000 (13:48 +0200)
commit4b76f9ed47074990d85c2ec52288a7d09c3ea357
tree7f73d6f96ac308548f2c4f82773ec598d71989fa
parent020fa0f2f03ad7ef9c51cfda6a156b3cdf86b631
nl80211: Document the expectation for NL80211_ATTR_IE in NL80211_CMD_CONNECT

This commit documents the expectation for NL80211_ATTR_IE when included
in NL80211_CMD_CONNECT, as following.

Driver shall not modify the IEs specified through NL80211_ATTR_IE if
NL80211_ATTR_MAC is included. However, if NL80211_ATTR_MAC_HINT is
included, these IEs through NL80211_ATTR_IE are specified by the user
space based on the best possible BSS selected. Thus, if the driver ends
up selecting a different BSS, it can modify these IEs accordingly (e.g.
userspace asks the driver to perform PMKSA caching with BSS1 and the
driver ends up selecting BSS2 with different PMKSA cache entry. RSNIE
has to get updated with the apt PMKID).

Signed-off-by: Sunil Dutt <usdutt@codeaurora.org>
Link: https://lore.kernel.org/r/1568378504-15179-1-git-send-email-usdutt@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h