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