Add rsn_pairwise bits to set_ieee8021x() driver_ops
authorDarshan Paranji Sri <dparanji@qti.qualcomm.com>
Tue, 3 Jun 2014 09:48:05 +0000 (12:48 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 3 Jun 2014 10:59:22 +0000 (13:59 +0300)
commit95b6bca66de9dc0a2ddd9164ec052a7d5f58804b
tree4d682f543c374a932ad868edb2fecd4475b582aa
parentb246e2af79af60ef298e3a4d1914f6e36171ee7e
Add rsn_pairwise bits to set_ieee8021x() driver_ops

This fixes an issue where a driver using the deprecated set_ieee8021x()
callback did not include rsn_pairwise bits in the driver configuration
even if mixed WPA+WPA2 configuration was used. This could result, e.g.,
in CCMP not being enabled properly when wpa_pairwise=TKIP and
rsn_pairwise=CCMP was used in the configuration. Fix this by using
bitwise OR of the wpa_pairwise and rsn_pairwise values to allow the
driver to enable all pairwise ciphers.

In addition, make the newer set_ap() driver_ops use the same bitwise OR
design instead of picking between rsn_pairwise and wpa_pairwise. This
makes the code paths consistent and can also fix issues with mixed mode
configuration with set_ap().

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