The branch main has been updated by adrian:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=76a20323fcfb9df34cd8529129cad0c4317115fb

commit 76a20323fcfb9df34cd8529129cad0c4317115fb
Author:     Adrian Chadd <[email protected]>
AuthorDate: 2026-02-26 03:49:38 +0000
Commit:     Adrian Chadd <[email protected]>
CommitDate: 2026-02-26 03:49:38 +0000

    iwi: migrate to new net80211 encryption key API
    
    Migrate to the new encryption key API rather than poking at the
    key struct directly.
    
    Differential Revision:  https://reviews.freebsd.org/D54481
---
 sys/dev/iwi/if_iwi.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c
index 26b8037186a6..8146b513d4e6 100644
--- a/sys/dev/iwi/if_iwi.c
+++ b/sys/dev/iwi/if_iwi.c
@@ -2534,9 +2534,10 @@ iwi_setwepkeys(struct iwi_softc *sc, struct ieee80211vap 
*vap)
 
                wepkey.cmd = IWI_WEP_KEY_CMD_SETKEY;
                wepkey.idx = i;
-               wepkey.len = wk->wk_keylen;
+               wepkey.len = ieee80211_crypto_get_key_len(wk);
                memset(wepkey.key, 0, sizeof wepkey.key);
-               memcpy(wepkey.key, wk->wk_key, wk->wk_keylen);
+               memcpy(wepkey.key, ieee80211_crypto_get_key_data(wk),
+                   ieee80211_crypto_get_key_len(wk));
                DPRINTF(("Setting wep key index %u len %u\n", wepkey.idx,
                    wepkey.len));
                error = iwi_cmd(sc, IWI_CMD_SET_WEP_KEY, &wepkey,

Reply via email to