Search Linux Wireless

Re: [PATCH RFC] mac80211: change rate control API to allow multi-rate retry

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

 



On Tue, 2008-09-30 at 03:18 +0200, Felix Fietkau wrote:
>  
> +/* maximum number of alternate rate retry stages */
> +#define IEEE80211_TX_MAX_ALTRATE	3
> +
> +/**
> + * struct ieee80211_tx_altrate - alternate rate selection/status
> + *
> + * @rate_idx: rate index to attempt to send with
> + * @limit: number of retries before fallback
> + */
> +struct ieee80211_tx_altrate {
> +	s8 rate_idx;
> +	u8 limit;
> +};
> +
>  /**
>   * struct ieee80211_tx_info - skb transmit information
>   *
> @@ -335,14 +349,16 @@
>  			struct ieee80211_key_conf *hw_key;
>  			struct ieee80211_sta *sta;
>  			unsigned long jiffies;
> -			s8 rts_cts_rate_idx, alt_retry_rate_idx;
> +			s8 rts_cts_rate_idx;
>  			u8 retry_limit;
>  			u8 icv_len;
>  			u8 iv_len;
> +			struct ieee80211_tx_altrate retries[IEEE80211_TX_MAX_ALTRATE];

If I'm counting correctly, that struct is now 2 bytes too large, you can
cut out retry_limit I'd think by updating drivers to use
retries[0].limit though. And iv/icv length can both be removed and added
into the key_conf I think.

johannes

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