From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.atheros.com ([12.36.123.2]:18098 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750901AbZAYSp4 (ORCPT ); Sun, 25 Jan 2009 13:45:56 -0500 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Sun, 25 Jan 2009 10:45:56 -0800 Date: Sun, 25 Jan 2009 10:45:17 -0800 From: "Luis R. Rodriguez" To: Michael Buesch CC: Luis Rodriguez , Jouni Malinen , "linux-wireless@vger.kernel.org" Subject: Re: regulatory: Operation already in progress Message-ID: <20090125184517.GH22475@tesla> (sfid-20090125_194600_961085_6B534D09) References: <200901251422.42616.mb@bu3sch.de> <20090125182107.GG22475@tesla> <200901251941.38228.mb@bu3sch.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <200901251941.38228.mb@bu3sch.de> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sun, Jan 25, 2009 at 10:41:38AM -0800, Michael Buesch wrote: > On Sunday 25 January 2009 19:21:07 Luis R. Rodriguez wrote: > > On Sun, Jan 25, 2009 at 05:22:42AM -0800, Michael Buesch wrote: > > > mb@quimby:~/kernel$ sudo iw reg set DE > > > command failed: Operation already in progress (-114) > > > > > > I wonder why this happens. > > > What I just did was install 2.6.28.2 and install today's compat-wireless. > > > > > > In dmesg I can see it succeeded once but it doesn't work anymore now. > > > [ 973.992710] cfg80211: Calling CRDA for country: DE > > > [ 973.998576] cfg80211: Regulatory domain changed to country: DE > > > [ 973.998630] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > > > [ 973.998691] (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm) > > > [ 973.998738] (5150000 KHz - 5255000 KHz @ 40000 KHz), (N/A, 2301 mBm) > > > [ 973.998785] (5470000 KHz - 5650000 KHz @ 40000 KHz), (N/A, 3000 mBm) > > > > Had you called twice? > > yeah, once manually with iw and once with hostapd. > > > If so we now tell userspace when its there by -EALREADY, > > we were just silently accepting two consecutive calls before. > > Well, but it makes hostapd fail. > I think it's a bit weird to throw and error code. In general most programs > silently return success early, if an operation was already done. We can prevent to propagate -EALREADY to userspace -- sure, I'll cook up the patch. Luis