diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2010-11-19 08:11:01 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-22 21:48:51 +0100 |
commit | 18890d4b89d8507ad09289f6f57a71591c7e9e83 (patch) | |
tree | a183e9035f004f4e7676c59aab5679c74661c961 /init/calibrate.c | |
parent | cfg80211: Fix regulatory bug with multiple cards and delays (diff) | |
download | linux-18890d4b89d8507ad09289f6f57a71591c7e9e83.tar.xz linux-18890d4b89d8507ad09289f6f57a71591c7e9e83.zip |
mac80211: Disable hw crypto for GTKs on AP VLAN interfaces
When using AP VLAN interfaces, each VLAN interface should be in its own
broadcast domain. Hostapd achieves this by assigning different GTKs to
different AP VLAN interfaces.
However, mac80211 drivers are not aware of AP VLAN interfaces and as
such mac80211 sends the GTK to the driver in the context of the base AP
mode interface. This causes problems when multiple AP VLAN interfaces
are used since the driver will use the same key slot for the different
GTKs (there's no way for the driver to distinguish the different GTKs
from different AP VLAN interfaces). Thus, only the clients associated
to one AP VLAN interface (the one that was created last) can actually
use broadcast traffic.
Fix this by not programming any GTKs for AP VLAN interfaces into the hw
but fall back to using software crypto. The GTK for the underlying AP
interface is still sent to the driver.
That means, broadcast traffic to stations associated to an AP VLAN
interface is encrypted in software whereas broadcast traffic to
stations associated to the non-VLAN AP interface is encrypted in
hardware.
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions