From owner-freebsd-wireless@FreeBSD.ORG Tue Oct 15 15:15:51 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A528B273 for ; Tue, 15 Oct 2013 15:15:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x231.google.com (mail-qa0-x231.google.com [IPv6:2607:f8b0:400d:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6249B2DF2 for ; Tue, 15 Oct 2013 15:15:51 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id i13so3431747qae.1 for ; Tue, 15 Oct 2013 08:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=9KvPHk86z/jO7AEqVCxOew7P/PMh4+swG348sTWZJ+4=; b=rYGeymJO/bldteGyn98i+jUxjE+JL3sBotSIH1JzPUxnlEX6NWbIjbkjGtyKJvnc29 vfdy2PR+cJ+BysBbYmAYLeY4UKty4WIR2RgX0piiHvM+6AccMC/tKTkFc2hLczOeH9kX m2oeKwr09GGHmv3nUo94sXBUuZmSWxCysBlMBC/heMO/0Vz7MZyNLJf0dT5ZuBGSa0SG +5q+Cn2g0AFfYFIVW+yeHm/rgqaT4k2aiW96/+PreMad1mhhUkY6M1MCuee1kzvtTdWA rAIRFsP6Uk/iwW+OZ+TnqGoztWPNJZ1VNTXFBVllX+VtPss299Ebcc3iCcAvgeg8XCY7 B/Cw== MIME-Version: 1.0 X-Received: by 10.224.51.131 with SMTP id d3mr44225445qag.0.1381850149972; Tue, 15 Oct 2013 08:15:49 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Tue, 15 Oct 2013 08:15:49 -0700 (PDT) In-Reply-To: References: <525B2802.5050904@gmail.com> Date: Tue, 15 Oct 2013 08:15:49 -0700 X-Google-Sender-Auth: ofrIEVkcLOdzHnuOj0u-U_2a-aQ Message-ID: Subject: Re: Wireless API From: Adrian Chadd To: Eric Turgeon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Oct 2013 15:15:51 -0000 Well, up until now the interactions have all been via the ioctl API or the ifconfig command. Both are cumbersome. There's a decent amount of library code in ifconfig for wifi and regulatory related stuff. It could be broken out into a public library.. -adrian On 15 October 2013 07:35, Eric Turgeon wrote: > If You have user documentation, I could use that rather then ifconfig. > > > On Tue, Oct 15, 2013 at 11:03 AM, Adrian Chadd wrote: > >> I'd rather that the ioctl API be used, rather than the output of >> 'ifconfig'. >> >> It's likely about time the ioctl API was turned into a library for >> userland to use. That way it could be imported into python/etc via C >> bindings. >> >> Thanks, >> >> >> >> -adrian >> >> >> >> On 15 October 2013 04:16, Eric Turgeon wrote: >> >>> Hi Adrian >>> >>> That is OK, I have download the source code of Wifimgr, it use >>> ifconfig. I was using "ifconfig wlan0 scan", it was to slow to display >>> info, but in the Wifimgr code they use >>> "ifconfig -v wlan* list scan" and "ifconfig wlan* list scan". I also >>> found wifimgr calculate S:N to find the percentage of the connection, it is >>> (S - N) * 4. >>> I have also read further ifconfig manual, I suppose ifconfig will be a >>> kind of API for my work. >>> >>> Thanks >>> >>> Eric >>> >>> >>> On Mon, Oct 14, 2013 at 4:51 PM, Adrian Chadd wrote: >>> >>>> Not sure. I've not really focused on the userland side of the API at >>>> all I'm sorry. >>>> >>>> Thanks, >>>> >>>> >>>> -adrian >>>> >>>> >>>> >>>> On 13 October 2013 17:09, Eric Turgeon wrote: >>>> >>>>> Were is the documentation for that API. >>>>> >>>>> >>>>> On Sun, Oct 13, 2013 at 8:57 PM, Adrian Chadd wrote: >>>>> >>>>>> What do you mean like "connection percentage" ? >>>>>> >>>>>> Do you mean like signal strength? If so, then yes. >>>>>> >>>>>> You can then make some basic heuristic guesses mapping signal level / >>>>>> RSSI to a connection percentage based on some assumptions. For example, you >>>>>> could look at the minimum RSSI required to guarantee some decent stability >>>>>> at each receive/transmit rate (from 1mbit->54mbit, then MCS1->MCS23) and >>>>>> then use that to map out connection percentage (where stable at MCS0 / >>>>>> 1mbit would be lowest, and stable at MCS7/54mbit would be 100%.) >>>>>> >>>>>> HTH, >>>>>> >>>>>> >>>>>> >>>>>> -adrian >>>>>> >>>>>> >>>>>> >>>>>> On 13 October 2013 16:08, Eric Tugeon wrote: >>>>>> >>>>>>> Hi, >>>>>>> I work on a Python GTK network manager for FreeBSD/GhostBSD, it will >>>>>>> look similar to https://projects.gnome.org/**NetworkManager/. >>>>>>> I want to know if we have wireless API like connection percentage? >>>>>>> ______________________________**_________________ >>>>>>> freebsd-wireless@freebsd.org mailing list >>>>>>> http://lists.freebsd.org/**mailman/listinfo/freebsd-**wireless >>>>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@** >>>>>>> freebsd.org " >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Eric Turgeon >>>>> **GhostBSD project* >>>>> Office location: >>>>> 1-11 connaught >>>>> Moncton NB Canada >>>>> www.ghostbsd.org >>>>> >>>> >>>> >>> >>> >>> -- >>> *Eric Turgeon >>> **GhostBSD project* >>> Office location: >>> 1-11 connaught >>> Moncton NB Canada >>> www.ghostbsd.org >>> >> >> > > > -- > *Eric Turgeon > **GhostBSD project* > Office location: > 1-11 connaught > Moncton NB Canada > www.ghostbsd.org >