]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Remove unused pmk argument from wpa_auth_derive_ptk_ft()
authorJouni Malinen <jouni@codeaurora.org>
Thu, 18 Apr 2019 21:23:43 +0000 (00:23 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 18 Apr 2019 22:05:47 +0000 (01:05 +0300)
FT rules for PTK derivation do not use PMK. Remove the unused argument
to the PTK derivation function.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/wpa_auth.c
src/ap/wpa_auth_ft.c
src/ap/wpa_auth_i.h

index 4c7fe05b0ce96eb147b8034abbf161071dd68d3b..fe0f85d8eeec752b2db969a0c10500f03a94f6fa 100644 (file)
@@ -2195,7 +2195,7 @@ static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
 
 #ifdef CONFIG_IEEE80211R_AP
        if (wpa_key_mgmt_ft(sm->wpa_key_mgmt))
-               return wpa_auth_derive_ptk_ft(sm, pmk, ptk);
+               return wpa_auth_derive_ptk_ft(sm, ptk);
 #endif /* CONFIG_IEEE80211R_AP */
 
 #ifdef CONFIG_DPP2
index fdb7ebaa5ffd04fa4e608c7963567d4e14eaa58c..5fb41c450a3942d79ce716fae2e49d643c1899b8 100644 (file)
@@ -2074,8 +2074,7 @@ int wpa_ft_store_pmk_fils(struct wpa_state_machine *sm,
 }
 
 
-int wpa_auth_derive_ptk_ft(struct wpa_state_machine *sm, const u8 *pmk,
-                          struct wpa_ptk *ptk)
+int wpa_auth_derive_ptk_ft(struct wpa_state_machine *sm, struct wpa_ptk *ptk)
 {
        u8 pmk_r0[PMK_LEN_MAX], pmk_r0_name[WPA_PMK_NAME_LEN];
        size_t pmk_r0_len = wpa_key_mgmt_sha384(sm->wpa_key_mgmt) ?
index 3dcf77aa9aec3091f60702a1a92456e372ca4e92..15512368e9ecfaca8b887b2733e110b221d58ec5 100644 (file)
@@ -290,8 +290,7 @@ int wpa_write_ftie(struct wpa_auth_config *conf, int use_sha384,
                   const u8 *anonce, const u8 *snonce,
                   u8 *buf, size_t len, const u8 *subelem,
                   size_t subelem_len);
-int wpa_auth_derive_ptk_ft(struct wpa_state_machine *sm, const u8 *pmk,
-                          struct wpa_ptk *ptk);
+int wpa_auth_derive_ptk_ft(struct wpa_state_machine *sm, struct wpa_ptk *ptk);
 struct wpa_ft_pmk_cache * wpa_ft_pmk_cache_init(void);
 void wpa_ft_pmk_cache_deinit(struct wpa_ft_pmk_cache *cache);
 void wpa_ft_install_ptk(struct wpa_state_machine *sm);