From owner-freebsd-wireless@freebsd.org Sun Aug 20 01:01:25 2017 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 C9D31DCF30A for ; Sun, 20 Aug 2017 01:01:25 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) Received: from sonic305-4.consmr.mail.bf2.yahoo.com (sonic305-4.consmr.mail.bf2.yahoo.com [74.6.133.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9009D6C3E7 for ; Sun, 20 Aug 2017 01:01:25 +0000 (UTC) (envelope-from fnoyanisi@yahoo.com) X-YMail-OSG: k5YLKmcVM1nEULAvK8EKCI2FYyt3_4IrxYShTASNzvjX93fW56E1iXH11bOI8Ik 9vDir9u4Rv0RI62w9c6oYdfVQslS25j4O8YLiDLTGIIqOqE28pmK_M_iWT5LdqLdYCisU5Id7OjZ VIf8kxvv_cRrW.J7RsXVqFClhF2tKyaybWBVFlKgDOvKPOcoYg_cOeyCMZiNVeJg0YrHI3RG7oba B3O.yN6whMSOwtIgmjB8WZbNQw3XK6i.EDIj.HGjeJBckHKLmjm_aOMBopCqktYs_o2CWSS7YFkz uxUGz56JsZkZTz7hSW8DYaBcobbdW.J3TDokPH8r9RTebtzegXwsd6o5ZFbI8u3T.sa8rhFZ0Mup C.RULTXz2fNGKU36SYX3MSGkEWeAtAtKPxhQDa_qK9gCmPm41TQVSLI3lJLxZjgT7Z_JcHAiwenC Cp3ZqhDg9TTU7H_L3N8jIzUVcCUzDUfZ4SkcSjnM6JqTatQTGfnNVCQ1GzNMelEzGql7NEoCamGk ie867eIalh_kSGXsKZyiOQVQd6C7rw16NPNS1pvi89ufxsdA5TEOutREDnv6r.BvROk3UxzAZ5kp gH.KidoruLyWXJFapGANdVH5yaI.6FLHXC6gTNizAUEcH0fC0UcgRXZB2RPZOgFk- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sun, 20 Aug 2017 01:01:18 +0000 Date: Sun, 20 Aug 2017 01:01:16 +0000 (UTC) From: Fehmi Noyan ISI Reply-To: "fnoyanisi@yahoo.com" To: "khanzf@gmail.com" , "freebsd-wireless@freebsd.org" Message-ID: <1598772807.920089.1503190876138@mail.yahoo.com> In-Reply-To: References: Subject: Re: ieee80211_waitfor_parent hangs forever MIME-Version: 1.0 X-Mailer: WebService/1.1.10391 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.18.2; Android/6.0; MRA58K; htc_m8; HTC; HTC_0P6B; 4.64; 1776x1080; ) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 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, 20 Aug 2017 01:01:25 -0000 as you might have noticed, ieee80211_draintask() is a wrapper around taskqueue_drain(9). Have you had a look at taskqueue_drain(9) man page? https://www.freebsd.org/cgi/man.cgi?query=taskqueue_drain&apropos=0&sektion=0&manpath=FreeBSD+11.1-RELEASE+and+Ports&arch=default&format=html On Sun, Aug 20, 2017 at 11:48, Farhan Khan wrote: Hi all, I traced back where my driver-in-development hangs when I issue "ifconfig wlan0 up", and it hangs on ieee80211_waitfor_parent(), specifically: ieee80211_draintask(ic, &ic->ic_parent_task); Reference: http://src.illumos.org/source/xref/freebsd-head/sys/net80211/ieee80211_proto.c#1406 I am not familiar with the source just yet, What does this function do? And, what is ic_parent_task? It appears that Andriy reported this same issue here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208860 but I did not see a resolution. Thanks! -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA _______________________________________________ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"