Search Linux Wireless

Re: [PATCH] mac80211: Replace ieee80211_tx_control->key_idx with ieee80211_key_conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 17 April 2008 17:28:29 Ivo van Doorn wrote:
> diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
> index 19aefbf..2ee19cf 100644
> --- a/drivers/net/wireless/b43/xmit.c
> +++ b/drivers/net/wireless/b43/xmit.c
> @@ -235,7 +235,7 @@ int b43_generate_txhdr(struct b43_wldev *dev,
>  
>  	plcp_fragment_len = fragment_len + FCS_LEN;
>  	if (use_encryption) {
> -		u8 key_idx = (u16) (txctl->key_idx);
> +		u8 key_idx = (u16) (txctl->hw_key->hw_key_idx);

Can we actually remove that bogus cast while we are at it? :)

>  		struct b43_key *key;
>  		int wlhdr_len;
>  		size_t iv_len;
> diff --git a/drivers/net/wireless/b43legacy/xmit.c b/drivers/net/wireless/b43legacy/xmit.c
> index dcad249..ba50b68 100644
> --- a/drivers/net/wireless/b43legacy/xmit.c
> +++ b/drivers/net/wireless/b43legacy/xmit.c
> @@ -232,7 +232,7 @@ static int generate_txhdr_fw3(struct b43legacy_wldev *dev,
>  
>  	plcp_fragment_len = fragment_len + FCS_LEN;
>  	if (use_encryption) {
> -		u8 key_idx = (u16)(txctl->key_idx);
> +		u8 key_idx = (u16)(txctl->hw_key->hw_key_idx);

Same here.

-- 
Greetings Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux