Search Linux Wireless

Re: [PATCH 04/16] mac80211: Don't encrypt beacons

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

 



On Sat, 2008-05-10 at 13:40 +0200, Ivo van Doorn wrote:
> Beacons shouldn't be encryped, so mac80211 should set
> the IEEE80211_TX_CTL_DO_NOT_ENCRYPT flag in tx info flags.
> Otherwise the driver will cause a NULL pointer dereference
> when it tries to access the info->control.hw_key which isn't
> configured.
> 
> Signed-off-by: Ivo van Doorn <IvDoorn@xxxxxxxxx>

Thanks.

Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

> ---
>  net/mac80211/tx.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> index f35eaea..28d8bd5 100644
> --- a/net/mac80211/tx.c
> +++ b/net/mac80211/tx.c
> @@ -1898,6 +1898,7 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw,
>  			control->flags |= IEEE80211_TXCTL_SHORT_PREAMBLE;
>  		control->antenna_sel_tx = local->hw.conf.antenna_sel_tx;
>  		control->flags |= IEEE80211_TXCTL_NO_ACK;
> +		control->flags |= IEEE80211_TXCTL_DO_NOT_ENCRYPT;
>  		control->retry_limit = 1;
>  		control->flags |= IEEE80211_TXCTL_CLEAR_PS_FILT;
>  	}

Attachment: signature.asc
Description: This is a digitally signed message part


[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