From owner-freebsd-wireless@FreeBSD.ORG Tue Oct 15 14:35:08 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 66587BC6; Tue, 15 Oct 2013 14:35:08 +0000 (UTC) (envelope-from ericturgeon.bsd@gmail.com) Received: from mail-pb0-x22f.google.com (mail-pb0-x22f.google.com [IPv6:2607:f8b0:400e:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 38E5029A8; Tue, 15 Oct 2013 14:35:08 +0000 (UTC) Received: by mail-pb0-f47.google.com with SMTP id rr4so8800460pbb.6 for ; Tue, 15 Oct 2013 07:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=THX4yXHCBIpKUMjJPVKp2hwILmRBPjJHEP/2zBb1oPU=; b=Wz5LO4FJrpyP2tNFTFW/cx1uK5etd1iyXKch3a/z3C1RPNKr1fysaJy/1YZTNX+Olo cOIsWDeYbiKWr9adnNEZiLHWagpflX9jmbdCiCMbS+I7eDLZaGcPrhGeh3nyb/GGSNvg lOpLM1+OS6k1SGSBI13wyl1HcipyToIoeWYcQY6j2Tvmc64hocbsdTGuFgFdpweab8zP pqSehiAASpC/80uT8O/NKLoPtEouHqaIdkDxV0z5h4c5WXBXqmRbWXu8kJ8Tod5TENnY R9s2ewsGp5IonveaC+F/gXg/NFWruw/akqiM6QCKFU4ApNwM9mnWvIvwNDOvtN4q7nzD XSfw== MIME-Version: 1.0 X-Received: by 10.68.58.137 with SMTP id r9mr8691042pbq.148.1381847707727; Tue, 15 Oct 2013 07:35:07 -0700 (PDT) Received: by 10.68.200.136 with HTTP; Tue, 15 Oct 2013 07:35:07 -0700 (PDT) In-Reply-To: References: <525B2802.5050904@gmail.com> Date: Tue, 15 Oct 2013 11:35:07 -0300 Message-ID: Subject: Re: Wireless API From: Eric Turgeon To: Adrian Chadd 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 14:35:08 -0000 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