]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: don't expose wdev->ssid for most interfaces
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 Oct 2017 19:56:01 +0000 (21:56 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Nov 2017 15:55:17 +0000 (16:55 +0100)
commitf90aa01dc33fdaaad4d5e31c3e233af94864b715
tree96692dbef72a177ac96ad74bd83e68b606999e9d
parent1f19dee07e1a92f3b71cb2d3a41fb5fc2aaeb6d2
nl80211: don't expose wdev->ssid for most interfaces

For mesh, this is simply wrong - there's no SSID, only the
mesh ID, so don't expose it at all.
For (P2P) client, it's wrong, because it exposes an internal
value that's only used when certain APIs are used.
For AP, it's actually the only correct case, so leave that.
All other interface types shouldn't be setting this anyway,
so there it won't change anything.

Fixes: e81677768b08 ("nl80211: send the NL80211_ATTR_SSID in nl80211_send_iface()")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c