From owner-freebsd-wireless@freebsd.org Wed Sep 16 06:54:13 2015 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 A2CBA9CD3DA for ; Wed, 16 Sep 2015 06:54:13 +0000 (UTC) (envelope-from s3erios@gmail.com) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3AEE21F14 for ; Wed, 16 Sep 2015 06:54:13 +0000 (UTC) (envelope-from s3erios@gmail.com) Received: by wicgb1 with SMTP id gb1so59064560wic.1 for ; Tue, 15 Sep 2015 23:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=G7azdT+nm9kPqi0RQSOlgwnh4VQs3O1VGZMgXp8bDKY=; b=EkXgM7kqcP/5CryyoZo4EOawDKRTbK0ywgUIkjtT1RH1jcAs0dNrsKutEevwvjxPv4 Q5k2bZLVhYLHMO1D8r6T3kErzORUrncfA7VIWgsSKLug6mRX/SUqrw04Q8PbGS6/QVE0 CJdTFGLJYpGNkRB5YYgackvwNXzJ2kkbiG0O9TeEn0ThBpTtlCDQjz3rsCxGg0Qos7h0 9yThiB3ri0tWF1B4OOUlbrRA5VS+Lk5MAJ8tt0zOgQtsXVpluZwD/ocwRAlkGejasR+6 oP1wFXYMAb8/kHElcEIzBAGYNtt9wdln632jFFv7nyJ5vDtUV8vv22Pg4j6Uk99Eh3nZ c3WQ== X-Received: by 10.194.91.193 with SMTP id cg1mr52829758wjb.88.1442386451769; Tue, 15 Sep 2015 23:54:11 -0700 (PDT) Received: from localhost (host-176-37-109-22.la.net.ua. [176.37.109.22]) by smtp.gmail.com with ESMTPSA id ej5sm24838214wjd.22.2015.09.15.23.54.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 15 Sep 2015 23:54:11 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-wireless@freebsd.org Subject: Re: urtwn and hostap References: <55F90187.10809@shrew.net> <55F906CB.9030007@shrew.net> Date: Wed, 16 Sep 2015 09:54:06 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andriy Voskoboinyk" Message-ID: In-Reply-To: <55F906CB.9030007@shrew.net> User-Agent: Opera Mail/12.16 (FreeBSD) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 16 Sep 2015 06:54:13 -0000 > ieee80211_free_node() at ieee80211_free_node()_0x38/frame > 0xfffffe0092fe8780 > ieee80211_node_vdetach() at ieee80211_node_vdetach()+0x2d/frame > 0xfffffe0092fe87a0 > ieee80211_vap_detach() at ieee80211_vap_detach()+0x35e/frame > 0xfffffe0092fe87d0 > urtwn_vap_delete() at urtwn_vap_delete()+0xe/frame 0xfffffe0092fe87f0 > if_clone_destroyif() at if_clone_destroyif()+0x1aa/frame > 0xfffffe0092fe8840 > if_clone_destroy() at if_clone_destroy()0x8e/frame 0xfffffe0092fe8860 > kern_ioctl() at kern_ioctl()+0x230/frame 0xfffffe0092fe88c0 > sys_ioctl() at sys_ioctl()+0x153/frame 0xfffffe0092fe89a0 > amd64_syscall() at amd64_syscall()+0x282/frame 0xfffffe0092fe8ab0 > Xfast_syscall() at Xfast_syscall()+0xfb/frame 0xfffffe0092fe8ab0 > -- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x8011e8c8a, rsp = > 0x7fffffffe2f8, rbp = 0x7fffffffe310 -- > db> > > -Matthew I'm suspecting that ieee80211_tx_complete() eats one extra reference to the vap->iv_bss - try to add ieee80211_node_incref(vap->iv_bss); before urtwn_tx_start() (this is not a proper solution, but should work for now).