mac80211: don't call drv_set_default_unicast_key() for VLANs
commitec4efc4a10c3b9a3ab4cf37dc3719fd3c4632cd0
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 08:39:18 +0000 (13 09:39 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 14:57:59 +0000 (13 15:57 +0100)
treed3529c52e7a92048e990120c318e512521004926
parent8fa3b6f9392bf6d90cb7b908e07bd90166639f0a
mac80211: don't call drv_set_default_unicast_key() for VLANs

Since drivers know nothing about AP_VLAN interfaces, trying to
call drv_set_default_unicast_key() just results in a warning
and no call to the driver. Avoid the warning by not calling the
driver for this on AP_VLAN interfaces.

This means that drivers that somehow need this call for AP mode
will fail to work properly in the presence of VLAN interfaces,
but the current drivers don't seem to use it, and mac80211 will
select and indicate the key - so drivers should be OK now.

Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c