]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't call drv_set_default_unicast_key() for VLANs
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 08:39:18 +0000 (09:39 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 14:57:59 +0000 (15:57 +0100)
commita3d5e2e4352f62543b1bcf84934e8c8d478ce0b6
treed3529c52e7a92048e990120c318e512521004926
parentc7f9b2d082237ab0f91411e75fc5542dcd437a4d
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