NetBSD Problem Report #22530
Received: (qmail 26766 invoked by uid 605); 18 Aug 2003 14:13:39 -0000
Message-Id: <200308181413.h7IED1X26636@usagi.naobsd.org>
Date: Mon, 18 Aug 2003 23:13:01 +0900 (JST)
From: naoki@fukaumi.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: naoki@fukaumi.org
To: gnats-bugs@gnats.netbsd.org
Subject: [PATCH] atw(4) country code handling bug
X-Send-Pr-Version: 3.95
>Number: 22530
>Category: kern
>Synopsis: [PATCH] atw(4) country code handling bug
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 18 14:14:00 +0000 2003
>Closed-Date: Mon Oct 13 20:16:33 +0000 2003
>Last-Modified: Mon Oct 13 20:16:33 +0000 2003
>Originator: FUKAUMI Naoki
>Release: NetBSD 1.6W
>Organization:
FUKAUMI Naoki
>Environment:
>Description:
The code doesn't match the comment in the source.
XXX I have an atw(4) device which is sold in japan. But it does
XXX not match any COUNTRY_* case. (fallback to default: case)
XXX Why? ;)
>How-To-Repeat:
See src/sys/dev/ic/atw.c.
>Fix:
Index: atw.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/atw.c,v
retrieving revision 1.1
diff -u -r1.1 atw.c
--- atw.c 2003/07/06 22:58:08 1.1
+++ atw.c 2003/08/18 14:02:55
@@ -646,7 +646,8 @@
/* Find available channels */
switch (country_code) {
case COUNTRY_MMK2: /* 1-14 */
- setbit(ic->ic_chan_avail, 14);
+ for (i = 1; i <= 14; i++)
+ setbit(ic->ic_chan_avail, i);
break;
case COUNTRY_ETSI: /* 1-13 */
for (i = 1; i <= 13; i++)
>Release-Note:
>Audit-Trail:
From: David Young <dyoung@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/22530 CVS commit: src/sys/dev/ic
Date: Sat, 20 Sep 2003 01:03:32 +0000 (UTC)
Module Name: src
Committed By: dyoung
Date: Sat Sep 20 01:03:32 UTC 2003
Modified Files:
src/sys/dev/ic: atw.c
Log Message:
Allow channels 1-14 in MMK2, for real. Fixes PR 22530 from
FUKAUMI Naoki.
To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 src/sys/dev/ic/atw.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dyoung
State-Changed-When: Mon Oct 13 20:14:44 UTC 2003
State-Changed-Why:
FUKAUMI Naoki confirms that revision 1.2 of atw.c and rev 1.2 of atwreg.h
give him the right channels for his regulatory domain.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.