From owner-freebsd-wireless@FreeBSD.ORG Mon May 14 16:42:45 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 10D12106564A for ; Mon, 14 May 2012 16:42:45 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C385B8FC0A for ; Mon, 14 May 2012 16:42:44 +0000 (UTC) Received: by ggnm2 with SMTP id m2so4239059ggn.13 for ; Mon, 14 May 2012 09:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9AoAH8qbZ7KrHCSq8s1xN6ktwV0tUMdXO83qnJocR9g=; b=A65GUnWdtVAihef7R2ctKPd53pq9NnhlG/c7wCjKcYbq7b1GY4yQzB62CmgEwNwtiK GTXJYEN/QMa0Xbs3X5P41SHu9v3pdJK3JUUzWZuvjK8qnG5BbJDpREKmMHmMXAXQXowh Yh6S27dk7c9VIf5roVvndMx1Y058oo80GMziJAsStzPfIrwTicr4x0acEdIsIZuYvmE+ RVa5Gwg3PORP3LG6Q0yIDxxbTr9xQ7vzdiXdSVuzV4fnuZQ6+8ZhGyZ/wfF8Z/JtF4GD qXjcRHQTfmRH5fEPvBTqRmF8+MARSf7OIjJ1n/5PxsOA0Az0LT2lucNPCZMRHKDmjooQ eLrA== MIME-Version: 1.0 Received: by 10.101.132.4 with SMTP id j4mr2619355ann.83.1337013764051; Mon, 14 May 2012 09:42:44 -0700 (PDT) Received: by 10.100.228.19 with HTTP; Mon, 14 May 2012 09:42:43 -0700 (PDT) Date: Mon, 14 May 2012 18:42:43 +0200 Message-ID: From: Monthadar Al Jaberi To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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:42:45 -0000 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 ssid tnap100 ifconfig wlan0 up before I bring wlan0 up, ifconfig shows: wlan0: flags=8802 metric 0 mtu 1500 ether 00:15:6d:xx:xx:xx media: IEEE 802.11 Wireless Ethernet OFDM/12Mbps mode 11g (autoselect ) status: no carrier ssid tnap100 channel 7 (2442 MHz 11g) country US ecm authmode OPEN privacy OFF txpower 21 scanvalid 60 protmode CTS wme burst dtimperiod 1 bintval 0 after wlan0 up: wlan0: flags=8843 metric 0 mtu 1500 ether 00:15:6d:xx:xx:xx media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid tnap100 channel 7 (2442 MHz 11g) bssid 00:15:6d:67:21:73 country US ecm authmode OPEN privacy OFF txpower 21 scanvalid 60 protmode CTS wme burst dtimperiod 1 thnx! -- Monthadar Al Jaberi