From owner-freebsd-wireless@FreeBSD.ORG Tue Apr 3 12:38:22 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A3FC1065670 for ; Tue, 3 Apr 2012 12:38:22 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id D582C8FC14 for ; Tue, 3 Apr 2012 12:38:21 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so4165189bkc.13 for ; Tue, 03 Apr 2012 05:38:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=reZHimnHpEhlzS8a748Dbc5bmSEiaTTlPgkto93dh90=; b=Z60TDki3WicA7sRGiYgHdMxu31IYeu99k5PANDupwFs61K0rYImgg9MYhh1eBc3Qys v5t+4IPZj8SxsJCJfk0Scrc+d5U82VYGpgwxVMU078iomlK9bvyslp41ITP2aULGpCgj 0Dvhgo1GBusTPoE590cCX0w6fhIBlEiFbd99O32QzcJyuh8w7tcZdt7NSDqQgPL0ZP+s +JlkcKdEaLiGZzDXRADTHBHvT2FbaFlkh3qvolL81lmDlNxV/dRSC+3WgHthKn29SSwG b6nzFE8rNw1D2tXK2tIkWOqyL/unYmyWEySG4l/+0VarsLFqH0pHOfyXGYCvv+KZO4QE cnEg== MIME-Version: 1.0 Received: by 10.152.133.9 with SMTP id oy9mr13829918lab.43.1333456700833; Tue, 03 Apr 2012 05:38:20 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.152.112.38 with HTTP; Tue, 3 Apr 2012 05:38:20 -0700 (PDT) X-Originating-IP: [79.140.39.245] In-Reply-To: <20120403.211212.59463568.iwasaki@jp.FreeBSD.org> References: <20120403.200327.18305192.iwasaki@jp.FreeBSD.org> <20120403.211212.59463568.iwasaki@jp.FreeBSD.org> Date: Tue, 3 Apr 2012 14:38:20 +0200 X-Google-Sender-Auth: 3szBMy0No7GX8PSJnr63B_rgilg Message-ID: From: Bernhard Schmidt To: Mitsuru IWASAKI Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlSubSa1S2gFG5ZY0T/2uWrwjuaGGr2SaDkQ20wEqlv1FC8jDn+IeMZ3nX6zKSqz5vVQQar Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] iwi(4) watchdog broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 03 Apr 2012 12:38:22 -0000 On Tue, Apr 3, 2012 at 14:12, Mitsuru IWASAKI wrote: > Hi, >> > Suspend/Resume problem was solved (thanks bschmidt!), >> > however problem still remainds after watchdog messages like >> > `device timeout' or `firmware stuck in state 4, resetting'. >> >> Honestly, I'd rather see the above issues fixed and not the workaround >> for it. ;) >> Do you have a test case to reproduce this? > > Yap, ifconfig wlan0 scan on RELENG_8 always reproduce 'firmware stuck > in state 4, resetting'. Ah, yeah, ok, the scan issue again, that is probably the reason why background scan support is disabled.. >> So, if I get that correctly, the only difference is that you added a >> ieee80211_new_state_locked(vap, IEEE80211_S_INIT, -1); call, right? >> Any reason why not calling ieee80211_stop_all()/ieee80211_start_all() >> directly in iwi_restart()? This will call the appropriate >> iwi_init/stop functions. > > Yes, I already tried that, wlan0 seems restarted but iwi0 not. > ifconfig show the status like this; > iwi0: flags=8842 metric 0 mtu 2290 > [snip] > wlan0: flags=8803 metric 0 mtu 1500 > [snip] > > I wonder if only RELENG_8 has this problem because HEAD and RELENG_9 > seems to be OK... wpa_supplicant involved? I mean, that is the only thing I can currently think of, wpa_supplicant versions differ between head and 8 afaik. The callgraph is also different between with and without supplicant. Can we rule the supplicant out somehow? I mean this condition in ieee80211_start_locked() if ((parent->if_drv_flags & IFF_DRV_RUNNING) && vap->iv_roaming != IEEE80211_ROAMING_MANUAL) { -- Bernhard