Fix pairwise cipher suite bitfields to the driver in mixed mode
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 25 Mar 2015 09:41:26 +0000 (11:41 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 10 Jun 2015 10:49:59 +0000 (13:49 +0300)
commite19c1d2cc7080fd7b25ca0b5c9109bd091d51e23
treed53f0691a6a96473197ba1c87c883fc0c3418065
parentee120ff3819123d26e05cd9d3dc6647b7354e63d
Fix pairwise cipher suite bitfields to the driver in mixed mode

Commit 95b6bca66de9dc0a2ddd9164ec052a7d5f58804b ('Add rsn_pairwise bits
to set_ieee8021x() driver_ops') modified cipher configuration to use
unconditionally wpa_pairwise | rsn_pairwise. While that works for many
cases, it does not handle the case of dynamic configuration changes over
the control interface where wpa_pairwise or rsn_pairwise values may not
get cleared when the wpa parameter is modified. Fix this inconsistency
by configuring the driver with only the bits that are valid for the
currently enabled WPA/WPA2 version(s).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ap_drv_ops.c
src/ap/beacon.c