[PATCH] region code is 8bit
Dan Williams
dcbw at redhat.com
Mon Aug 20 13:10:05 EDT 2007
On Mon, 2007-08-06 at 09:06 +0200, Marek Vašut wrote:
> This patch strips away possible mess in regioncode (eg. on my card - 88W8305
> chipset - I get 0x3031 instead of expected 0x0031 and as a result the driver
> defaults to USA region which is obviously incorrect). Following patch fixes
> the issue.
Applied, thanks!
Dan
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
>
> --- libertas.orig/cmdresp.c 2007-08-04 17:16:27.000000000 +0200
> +++ libertas/cmdresp.c 2007-08-06 08:33:52.000000000 +0200
> @@ -180,7 +180,7 @@
> lbs_deb_cmd("GET_HW_SPEC: hardware interface 0x%x, hardware spec
> 0x%04x\n",
> hwspec->hwifversion, hwspec->version);
>
> - adapter->regioncode = le16_to_cpu(hwspec->regioncode);
> + adapter->regioncode = (le16_to_cpu(hwspec->regioncode) & 0xff);
>
> for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) {
> /* use the region code to search for the index */
>
> _______________________________________________
> libertas-dev mailing list
> libertas-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/libertas-dev
More information about the libertas-dev
mailing list