wl1251: enforce changed hw encryption support on monitor state change
authorDavid Gnedt <david.gnedt@davizone.at>
Tue, 7 Jan 2014 12:11:27 +0000 (13:11 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 18 Apr 2014 23:52:37 +0000 (02:52 +0300)
commit1c0a933c25ed0c5a2a78c3f04d9c0622c7243f10
tree0c2802d769dfdd4ad28b39de7004b7d36d23767b
parenta07aa72aec2b0376f7dd66e74ffd390b78b1215c
wl1251: enforce changed hw encryption support on monitor state change

The firmware doesn't support per packet encryption selection, so disable hw
encryption support completely while a monitor interface is present to support
injection of packets (which shouldn't get encrypted by hw).
To enforce the changed hw encryption support force a disassociation on
non-monitor interfaces.
For disassociation a workaround using hw connection monitor is employed,
which temporary enables hw connection manager flag.

Signed-off-by: David Gnedt <david.gnedt@davizone.at>
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl1251/main.c