Search Linux Wireless

[RFC v2 07/22] mac80211: always process blockack action from workqueue

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

 



Johannes Berg wrote:
>  		switch (mgmt->u.action.u.addba_req.action_code) {
>  		case WLAN_ACTION_ADDBA_REQ:
>  			if (len < (IEEE80211_MIN_ACTION_SIZE +
>  				   sizeof(mgmt->u.action.u.addba_req)))
> -				return RX_DROP_MONITOR;
> -			ieee80211_process_addba_request(local, rx->sta, mgmt, len);
> -			goto handled;
> +				goto invalid;
> +			break;
>  		case WLAN_ACTION_ADDBA_RESP:
>  			if (len < (IEEE80211_MIN_ACTION_SIZE +
>  				   sizeof(mgmt->u.action.u.addba_resp)))
> -				break;
> -			ieee80211_process_addba_resp(local, rx->sta, mgmt, len);
> -			goto handled;
> +				goto invalid;
> +			break;
>  		case WLAN_ACTION_DELBA:
>  			if (len < (IEEE80211_MIN_ACTION_SIZE +
>  				   sizeof(mgmt->u.action.u.delba)))
> -				break;
> -			ieee80211_process_delba(sdata, rx->sta, mgmt, len);
> -			goto handled;
> +				goto invalid;
> +			break;
> +		default:
> +			goto invalid;
>  		}

rx->sta->rx_packets is no longer incremented for valid action frames,
since we return immediately after queuing to sdata.

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