[v6a,1/7] Fixes for hostapd: Set the correct key_type for key installs
diff mbox series

Message ID 20190928181807.180530-2-alexander@wetzel-home.de
State New
Headers show
Series
  • Fixes for Extended Key ID patch series V6
Related show

Commit Message

Alexander Wetzel Sept. 28, 2019, 6:18 p.m. UTC
This is a correction on top of:
 [PATCH v6 05/17] hostapd: Set the correct key_type for key installs

Changes:
 - Change one wrong key_types to the correct one

The original commit message also is wrong. It should be:

In addition to the set_tx boolean this also sets the corresponding
new variable key_type for all key installs.

Till set_tx is dropped drivers can use either set_tx or key_type,
allowing a seamless migration to key_type.

Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
---
 src/ap/ieee802_1x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c
index b45eef94b..2f2099dc7 100644
--- a/src/ap/ieee802_1x.c
+++ b/src/ap/ieee802_1x.c
@@ -286,7 +286,7 @@  static void ieee802_1x_tx_key(struct hostapd_data *hapd, struct sta_info *sta)
 		if (hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_WEP,
 					sta->addr, 0, NULL, 0, ikey,
 					hapd->conf->individual_wep_key_len,
-					KEY_TYPE_DEFAULT)) {
+					KEY_TYPE_PAIRWISE)) {
 			wpa_printf(MSG_ERROR,
 				   "Could not set individual WEP encryption");
 		}