Search Linux Wireless

Re: [PATCH 3/8 v2] mac80211: A-MPDU Rx adding basic functionality

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

 



A few minor comments, looks good otherwise.

>  	status = WLAN_STATUS_REQUEST_DECLINED;
>  
> +

spurious newline added, I'd think.

> +	/* prepare reordering buffer */
> +	tid_agg_rx->reorder_buf =
> +		kmalloc(buf_size * sizeof(struct sk_buf *), GFP_ATOMIC);
> +	if (!tid_agg_rx->reorder_buf) {
> +		printk(KERN_ERR "can not allocate reordering buffer "
> +						"to tid %d\n", tid);

Should that be ratelimited just in case somebody is trying over and over
again while we're under memory pressure?

> +	skb = dev_alloc_skb(sizeof(*mgmt) + local->hw.extra_tx_headroom + 1 +
> +					sizeof(mgmt->u.action.u.delba));

What's "+ 1"?

> +			printk(KERN_DEBUG "rx BA session requested to stop on "
> +				"unactive tid %d\n", tid);

typo: "inactive"

> +	sta = sta_info_get(local, temp_sta->addr);
> +
> +	if (!sta)
> +		return;

Still have that?

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