From owner-freebsd-mobile@FreeBSD.ORG Fri Aug 20 21:08:38 2004 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 BCE6216A4CE; Fri, 20 Aug 2004 21:08:38 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E2BF43D1F; Fri, 20 Aug 2004 21:08:38 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i7KL8bWi090585 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 20 Aug 2004 14:08:38 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-current@freebsd.org Date: Fri, 20 Aug 2004 14:12:15 -0700 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200408201412.15438.sam@errno.com> X-Mailman-Approved-At: Sat, 21 Aug 2004 02:57:43 +0000 Subject: net80211+atheros changes 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 Aug 2004 21:08:38 -0000 http://www.freebsd.org/~sam/net80211+ath-20040818.tgz has a first cut at back-merging the work I've done in Linux to FreeBSD. These changes update the 802.11 support and all the drivers that use it. The patch also brings in the latest version of the Atheros hal. To use it do something like: cd /usr/src tar zxf net80211+ath-20040818.tgz cd sys patch < net80211+ath-20040818.patch then rebuild modules and/or kernels. The diffs are against current as of a couple of days ago. There are obvious changes missing to if_ray (s/struct/union/) which keep it from building. Otherwise beware that I've built only on x86. Note that this code is lightly tested. WEP support is reported broken. I've tested station mode of the wi driver but not ap operation. I'm certain ap+wep is broken for the wi driver. One person reported adhoc mode "vanished" for the wi driver but another said it was there. The 802.11 changes are significant. They represent >9 months work in updating 802.11g support and adding WPA supplicant and authenticator support. WPA support for FreeBSD is not available yet; it uses Jouni Malinen's wpa_supplicant and hostapd programs. Note that the crypto support is now broken out into separate loadable modules (or statically linked into the kernel). To get wep support add device wlan_wep to your config file. Otherwise the crypto code will automatically try to load this module at runtime when a key is setup (likewise for tkip, ccmp, or other keys). This loading may generate WITNESS complaints about holding a lock over blocking malloc calls. Resolving this correctly requires addressing some general locking issues in the net80211 layer wrt drivers. I'm putting this stuff out as a patch because I've got no time to work on it. If folks can cleanup the remaining issues then someone else is welcome to commit it (I'll deal with the ath hal import). Otherwise I'll look at it as time permits. However I'm away the next two weeks. Sam