git: kernel - Add sysctl to bypass wifi chipset hardware crypto

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Nov 14 08:09:22 PST 2010


commit 1b196a0c3aec7af34c223e2fd5b60693f4de1162
Author: Matthew Dillon <dillon at laptop1.(none)>
Date:   Sun Nov 14 08:02:48 2010 -0800

    kernel - Add sysctl to bypass wifi chipset hardware crypto
    
    * Add sysctl net.wlan.force_swcrypto, default disabled.  If set to 1
      prior to attaching wlan to the underlying wireless interface this
      will force software crypto to be used and bypass the hardware
      crypto implemented by the wireless chipset.
    
    * Currently we know there is at least one serious issue with the
      Atheros 9280 when used with WEP2 (shows up as RSN in list scan) + WPS,
      and possibly other combinations.  The wrong transmit key winds up
      being used for broadcast packets, including ARP.
    
    * This sysctl works around the problem.  If your wpa_supplicant is able
      to connect to a network but you are unable to dhclient / use the
      network you might be hitting this problem and setting the sysctl to
      1 may fix it.
    
      Note that the sysctl must be set prior to attaching the wlan to the
      underlying wireless driver, so it is typically best to do it at boot
      time or near the top of whatever script you use.
    
    Inspired-by: 2-days of connectivity issues at NYCBSDCON.

Summary of changes:
 sys/netproto/802_11/ieee80211_dragonfly.h      |    1 +
 sys/netproto/802_11/wlan/ieee80211_crypto.c    |    4 ++++
 sys/netproto/802_11/wlan/ieee80211_dragonfly.c |    3 +++
 3 files changed, 8 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b196a0c3aec7af34c223e2fd5b60693f4de1162


-- 
DragonFly BSD source repository





More information about the Commits mailing list