From owner-freebsd-wireless@FreeBSD.ORG Mon May 14 16:54:33 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 630971065670; Mon, 14 May 2012 16:54:33 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 07E758FC12; Mon, 14 May 2012 16:54:32 +0000 (UTC) Received: by yhgm50 with SMTP id m50so5682537yhg.13 for ; Mon, 14 May 2012 09:54:32 -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:content-transfer-encoding; bh=c1LvLI8cMIVQgUB1MWtphc2Dy3FhXWGIrceEB4iuEaQ=; b=Qpa0c77QFtpRt1DjBI2WWHTvAnW+pq3qKvISE9Zp1LDny2kxvkE/j2xYOnGkcvluqs V3+x7NbuwV4BfXY9+3t0uueTxF5lao6kigVyzfpF/lOhJ6p8L9Zl2Id5+IR608SiiMLo vqDfBeeKod+JkOBag0+d389eCuhIGJuwWpXVNYw7lonHx1n/TXE/z8seJCbjyWe3KD6T UdJ02QkFdddT+yk2cem4bnLytZMDy124o8K2pBgj2hOh5yyhnxs+Dw26wY9sWKv7skvB EyJywzk0zehbdL0lk8P4AIwq9WdJcjjUyXKnfOQAyIu92YytgRCJAHWabJr84eOJIp6F 4pYw== MIME-Version: 1.0 Received: by 10.101.166.2 with SMTP id t2mr2695492ano.70.1337014472553; Mon, 14 May 2012 09:54:32 -0700 (PDT) Received: by 10.100.228.19 with HTTP; Mon, 14 May 2012 09:54:32 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 May 2012 18:54:32 +0200 Message-ID: From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: wlan0 media setting resets after ifconfig wlan0 up 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: Mon, 14 May 2012 16:54:33 -0000 On Mon, May 14, 2012 at 6:52 PM, Monthadar Al Jaberi wrote: > On Mon, May 14, 2012 at 6:51 PM, Adrian Chadd wrote: >> Hi, >> >> I've noticed this before. It seems the rate settings are reset >> whenever the PHY mode is changed. This occurs at startup and during >> things like bg/a -> n promotion. >> >> It's worth (further) investigation but i personally don't have the time = atm. :( > > Is there a preffered work around? I have noticed that if I fix ucastrate/mgmtrate/mcastrate then media will be fixed too... but what made me worried was that athstats said: "1M current transmit rate" but I fixed rate to 6M > >> >> >> >> Adrian >> >> >> On 14 May 2012 09:42, Monthadar Al Jaberi wrote: >>> I am running current @ RSPRO with an XR2 wifi (AR5414). I am trying to >>> fix the media to one specific setting, but the moment I bring wlan up >>> it changes back to autoselect any idea why? >>> >>> This is how I do it: >>> >>> ifconfig wlan0 create wlandev ath0 wlanmode hostap >>> ifconfig wlan0 media OFDM/12Mbps mode 11g mediaopt hostap channel 7 ssi= d tnap100 >>> ifconfig wlan0 up >>> >>> >>> before I bring wlan0 up, ifconfig shows: >>> wlan0: flags=3D8802 metric 0 mtu 1500 >>> =A0 =A0 =A0 =A0ether 00:15:6d:xx:xx:xx >>> =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet OFDM/12Mbps mode 11= g >>> (autoselect ) >>> =A0 =A0 =A0 =A0status: no carrier >>> =A0 =A0 =A0 =A0ssid tnap100 channel 7 (2442 MHz 11g) >>> =A0 =A0 =A0 =A0country US ecm authmode OPEN privacy OFF txpower 21 scan= valid 60 >>> =A0 =A0 =A0 =A0protmode CTS wme burst dtimperiod 1 bintval 0 >>> >>> after wlan0 up: >>> wlan0: flags=3D8843 metric 0 mt= u 1500 >>> =A0 =A0 =A0 =A0ether 00:15:6d:xx:xx:xx >>> =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g= >>> =A0 =A0 =A0 =A0status: running >>> =A0 =A0 =A0 =A0ssid tnap100 channel 7 (2442 MHz 11g) bssid 00:15:6d:67:= 21:73 >>> =A0 =A0 =A0 =A0country US ecm authmode OPEN privacy OFF txpower 21 scan= valid 60 >>> =A0 =A0 =A0 =A0protmode CTS wme burst dtimperiod 1 >>> >>> >>> thnx! >>> >>> -- >>> Monthadar Al Jaberi >>> _______________________________________________ >>> 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" > > > > -- > Monthadar Al Jaberi --=20 Monthadar Al Jaberi