[PATCH 1/3] Use WCN36XX_BD_RATE_CTRL for 5G band

Pontus Fuchs pontus.fuchs at gmail.com
Thu Jun 27 06:09:36 EDT 2013


On 2013-06-18 14:33, Eugene Krasnikov wrote:
> For MGMT frames on 5G band use WCN36XX_BD_RATE_CTRL rate.
> The same must be done in future for P2P interface.
>

[...]


> +		if (ieee80211_is_mgmt(hdr->frame_control))
> +			bd->bd_rate = (wcn->band == IEEE80211_BAND_5GHZ) ?
> +				WCN36XX_BD_RATE_CTRL :
> +				WCN36XX_BD_RATE_MGMT;

[...]

>   		else if (ieee80211_is_mgmt(hdr->frame_control))
> -			bd->bd_rate = WCN36XX_BD_RATE_MGMT;
> +			bd->bd_rate = (wcn->band == IEEE80211_BAND_5GHZ) ?
> +				WCN36XX_BD_RATE_CTRL :
> +				WCN36XX_BD_RATE_MGMT;

Same code in two places. I'd prefer to have the bd rate selection in a 
function instead.

Cheers,

Pontus




More information about the wcn36xx mailing list