From owner-freebsd-wireless@freebsd.org Sun Apr 10 11:02:21 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A769B09D61 for ; Sun, 10 Apr 2016 11:02:21 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7001911B9 for ; Sun, 10 Apr 2016 11:02:20 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 642C420D92 for ; Sun, 10 Apr 2016 07:02:02 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute6.internal (MEProxy); Sun, 10 Apr 2016 07:02:02 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=skunkwerks.at; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=a1y Zc0XPPQ0st2lCJcn0Z2SycEQ=; b=J7CM92Lf+AUamDfFKdxGp0+dBdqXYz7u5Py 2Gm7lEFzaIdCaJA8O5sP8j2UcwFnRIyxMX7B/SX8nQuT5Ozlm5mp1BS6X1GIGTS3 vCzBMCheacid7GaVY0zcI8FeGLJE5dagmXcqfWtZaI/2/Q3oP4U9sTs8rIbf4Kwk CScFlfQk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=a1yZc0XPPQ0st2lCJcn0Z2SycEQ=; b=UJT0N 1N4xQgSpujGziTzJGJsqz233rHlfQmkfR5excfQ1Y0hPIGIiKq5rAJExTR0ZG81y K13Teekzi5+7UFboAdC2DqZqHzZWAyGEniuC42X+raQwAXMWlZZwtxWuRGHjTilu j13PJVmK449sH8aRtwygpHOCogwR+DmRVmFwCM= Received: by web6.nyi.internal (Postfix, from userid 99) id 389C0578B5; Sun, 10 Apr 2016 07:02:02 -0400 (EDT) Message-Id: <1460286122.3298383.574172017.3A717528@webmail.messagingengine.com> X-Sasl-Enc: J0dvA0tXWWuLO81dHfflDYypNNfIBnDPoSccQRxq2RE7 1460286122 From: Dave Cottlehuber To: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-eadf0bcf Subject: "no buffer space available" EDIMAX EW-7811UN Wireless USB Adapter Date: Sun, 10 Apr 2016 13:02:02 +0200 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2016 11:02:21 -0000 Hi, I got an EDIMAX EW-7811UN Wireless USB Adapter [1] (150 Mbit/s, IEEE802.11b/g/n) to use on a few systems that don't yet have supported onboard adapters. While using this I get `no buffer space available` regularly, including from dhclient. This sometimes requires me to hard reboot to regain network connectivity. Is there anything I can do about this? BTW specific recommendations on better-supported USB widgets are welcome. Hopefully relevant/useful info below. [1]: http://www.edimax.com/edimax/merchandise/merchandise_detail/data/edimax/global/wireless_adapters_n150/ew-7811un root@nucl:~ # uname -v FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC root@nucl:~ # dmesg | egrep -i 'wlan|urtwn' urtwn0: on usbus0 urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R wlan0: Ethernet address: 74:da:38:41:6e:7f wlan0: link state changed to UP root@nucl:~ # kldstat Id Refs Address Size Name 1 68 0xffffffff80200000 17bc680 kernel 2 1 0xffffffff819bd000 2fc428 zfs.ko 3 12 0xffffffff81cba000 6040 opensolaris.ko 4 1 0xffffffff81cc1000 a858 if_tap.ko 5 1 0xffffffff81ccc000 11c28 if_bridge.ko 6 2 0xffffffff81cde000 8490 bridgestp.ko 7 1 0xffffffff81ce7000 157c0 aio.ko 8 1 0xffffffff81cfd000 1598 accf_data.ko 9 1 0xffffffff81cff000 1850 accf_dns.ko 10 1 0xffffffff81d01000 4a70 coretemp.ko 11 1 0xffffffff81d06000 1d6080 vmm.ko 12 1 0xffffffff81edd000 4d48 nmdm.ko 13 1 0xffffffff81ee2000 2188 dtraceall.ko 14 2 0xffffffff81ee5000 7040 profile.ko 15 11 0xffffffff81eed000 591a0 dtrace.ko 16 2 0xffffffff81f47000 1d548 systrace_freebsd32.ko 17 2 0xffffffff81f65000 1df50 systrace.ko 18 2 0xffffffff81f83000 3458 sdt.ko 19 2 0xffffffff81f87000 6730 lockstat.ko 20 2 0xffffffff81f8e000 620f0 fasttrap.ko 21 2 0xffffffff81ff1000 9658 fbt.ko 22 2 0xffffffff81ffb000 5ee8 dtnfscl.ko 23 2 0xffffffff82001000 60c0 dtmalloc.ko 24 1 0xffffffff82008000 3108 cc_htcp.ko 25 1 0xffffffff82711000 fdb4 geom_eli.ko 26 1 0xffffffff82721000 1f55e crypto.ko 27 1 0xffffffff82741000 2ba8 uhid.ko 28 1 0xffffffff82744000 11da8 if_urtwn.ko root@nucl:~ # cat /etc/rc.conf ifconfig_em0="DHCP" ifconfig_em0_ipv6="inet6 accept_rtadv" # wifi wlans_urtwn0="wlan0" ifconfig_wlan0="WPA DHCP" root@nucl:~ # root@nucl:~ # ifconfig wlan0 list caps drivercaps=2181c001 root@nucl:~ # ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=4019b ether b8:ae:ed:78:fb:0c inet6 fe80::baae:edff:fe78:fb0c%em0 prefixlen 64 scopeid 0x1 inet6 2001:470:26:2bf:baae:edff:fe78:fb0c prefixlen 64 autoconf inet 10.0.0.11 netmask 0xffffff00 broadcast 10.0.0.255 nd6 options=23 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 urtwn0: flags=8843 metric 0 mtu 2290 ether 74:da:38:41:6e:7f nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843 metric 0 mtu 1500 ether 74:da:38:41:6e:7f inet 10.0.0.41 netmask 0xffffff00 broadcast 10.0.0.255 nd6 options=29 media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g status: associated ssid cottlehubers channel 10 (2457 MHz 11g) bssid bc:f2:af:e3:1e:92 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 3:128-bit txpower 0 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS roaming MANUAL root@nucl:~ # netstat -m 1024/2021/3045 mbufs in use (current/cache/total) 1023/1007/2030/1011284 mbuf clusters in use (current/cache/total/max) 1023/1001 mbuf+clusters out of packet secondary zone in use (current/cache) 0/4/4/505642 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/149819 9k jumbo clusters in use (current/cache/total/max) 0/0/0/84273 16k jumbo clusters in use (current/cache/total/max) 2302K/2535K/4837K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters delayed (4k/9k/16k) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile root@nucl:~ # sysctl net.wlan net.wlan.0.inact_init: 30 net.wlan.0.inact_auth: 180 net.wlan.0.inact_probe: 30 net.wlan.0.inact_run: 300 net.wlan.0.bmiss_max: 2 net.wlan.0.debug: 0 net.wlan.0.driver_caps: 562085889 net.wlan.0.%parent: urtwn0 net.wlan.mesh.maxholding: 2 net.wlan.mesh.maxretries: 2 net.wlan.mesh.backofftimeout: 5000 net.wlan.mesh.confirmtimeout: 40 net.wlan.mesh.holdingtimeout: 40 net.wlan.mesh.retrytimeout: 40 net.wlan.mesh.gateint: 10000 net.wlan.hwmp.inact: 5000 net.wlan.hwmp.rootconfint: 2000 net.wlan.hwmp.rannint: 1000 net.wlan.hwmp.rootint: 2000 net.wlan.hwmp.roottimeout: 5000 net.wlan.hwmp.net_diameter_traversal_time: 512 net.wlan.hwmp.maxpreq_retries: 3 net.wlan.hwmp.pathlifetime: 5000 net.wlan.hwmp.targetonly: 0 net.wlan.addba_maxtries: 3 net.wlan.addba_backoff: 10000 net.wlan.addba_timeout: 250 net.wlan.recv_bar: 1 net.wlan.ampdu_age: 500 net.wlan.debug: 0 net.wlan.cac_timeout: 60 net.wlan.nol_timeout: 1800