> From: Cedric Izoard <[email protected]> > To: [email protected] <[email protected]> > Cc: [email protected] <[email protected]> > Subject: [PATCH] mac80211: Get IV len from key conf and not cipher > scheme > Date: Tue, 10 Mar 2015 08:52:23 +0000 > > Do not always dereference sta to get cipher scheme as it may be null > for broadcast messages. > Instead get IV length from key configuration which has been > initialized with cipher scheme. > Cedric, in general a cipher scheme was about to be used with a station holding ucast and mcast/bcast keys, so, my question is about the following line:
> + res = ieee80211_crypto_cs_encrypt(tx, skb); What is a point of calling this function when tx->key->sta or tx->key->sta->cipher_scheme is NULL? In which scenario? Thanks, Max
