[rt2x00-users] [PATCH 1/2] rt2x00: Add padding to beacon.

Helmut Schaa helmut.schaa at googlemail.com
Fri Dec 10 09:00:55 EST 2010


Hi Wolfgang,

[...]

> @@ -806,8 +807,10 @@ void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc)
>  	rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
>  
>  	/*
> -	 * Write entire beacon with TXWI to register.
> +	 * Write entire beacon with TXWI and padding to register.
>  	 */
> +	padding_len = roundup(entry->skb->len, 4) - entry->skb->len;
> +	memset(skb_put(entry->skb, padding_len), 0, padding_len);

Are we sure the skb has enough tail room to embed the padding here?

Thanks,
Helmut



More information about the users mailing list