Search Linux Wireless

Re: [PATCH 2/2] mac80211: add support for showing the last rx bitrate

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

 



On Thu, 2011-02-10 at 16:29 +0100, Felix Fietkau wrote:

> @@ -1166,14 +1166,23 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
>  	if (rx->sdata->vif.type == NL80211_IFTYPE_ADHOC) {
>  		u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len,
>  						NL80211_IFTYPE_ADHOC);
> -		if (compare_ether_addr(bssid, rx->sdata->u.ibss.bssid) == 0)
> +		if (compare_ether_addr(bssid, rx->sdata->u.ibss.bssid) == 0) {
>  			sta->last_rx = jiffies;
> +			if (ieee80211_is_data(hdr->frame_control)) {
> +				sta->last_rx_rate_idx = status->rate_idx;
> +				sta->last_rx_rate_flag = status->flag;
> +			}

... and in fact you do that here. Please document this expectation in
nl80211 :-)

johannes

--
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