From owner-freebsd-mobile@FreeBSD.ORG Fri Jun 20 12:52:41 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E15F37B401 for ; Fri, 20 Jun 2003 12:52:41 -0700 (PDT) Received: from sec.ms.mff.cuni.cz (sec.ms.mff.cuni.cz [195.113.17.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84F7943F3F for ; Fri, 20 Jun 2003 12:52:39 -0700 (PDT) (envelope-from vaclav.petricek@mff.cuni.cz) Received: from localhost (localhost [127.0.0.1]) by sec.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id h5KJxgIV032380 for ; Fri, 20 Jun 2003 21:59:42 +0200 (CEST) (envelope-from vaclav.petricek@mff.cuni.cz) Date: Fri, 20 Jun 2003 21:59:42 +0200 (CEST) From: Vaclav Petricek X-X-Sender: petricek@sec.ms.mff.cuni.cz To: freebsd-mobile@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: ACL and TEST MODE 15 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 19:52:41 -0000 Hello Looking at Warner's wi-power.diff I am wandering what use is the section setting WI_DEBUG_CONFBITS. Is it a trick to make future txpower adjustment without disabling ACL? ------------------------------------------------------------ static void wi_writepower(const char *iface, int power) { struct wi_req wreq; wreq.wi_type = WI_DEBUG_CONFBITS; // wreq.wi_val[0] = 1; // wreq.wi_val[1] = 0x8; // ??? wreq.wi_len = 1 + 1 + 1; // wi_setdebug(iface, &wreq); // wreq.wi_type = WI_RID_MIF; wreq.wi_val[0] = WI_HFA386X_CR_MANUAL_TX_POWER; wreq.wi_val[1] = power; wreq.wi_len = 1 + 1 + 1; wi_setval(iface, &wreq); } ------------------------------------------------------------ Using this patch I am able to set the txpower but as the ACL is not disabled the change is reverted immediatelly. I found out that to disable the ACL I need to use a TEST MODE 15 command. On a point to point link I would like to keep the ACL but I want to be able to limit the maximum txpower so that I do not exceed local regulations but that would require some more work I guess. For the time being a fixed setting of txpower would do. As I have not yet obtained the driver programmers manual from intersil (NDA required) I am not sure of the correct values to fill in wreq structure when issuing the TEST MODE 15 command. Can anyone share the values with me (if the NDA allows)? Thank you very much, Vaclav