From owner-freebsd-wireless@freebsd.org Fri Feb 26 15:29:26 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0FBABAB5113 for ; Fri, 26 Feb 2016 15:29:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D33BF158B for ; Fri, 26 Feb 2016 15:29:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x22f.google.com with SMTP id xg9so36667924igb.1 for ; Fri, 26 Feb 2016 07:29:25 -0800 (PST) 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; bh=lf6aquhYve72eJCZntI4Rt5ze2QbgTdCj7TaYNAbuKo=; b=jJURGfjQqPH5vNGoHWe9kYesu1rpTmhFkx2sCJid5OEnOVv7Aj23yJw9UiSb9pPNW2 +aDdEPGe9Ce10duxKkXfNR5s4nnXFiB14pw9SHqYkomCUay3XKcxvMHbccvm6nlZrj7q Sl0T4k8S8KsbYctFuGiRPsiGdD1PW7bDp2LmHxaopVMwtt43btEPWnPiRgxB9kL4OJ0h ixlhkA+YNGfmAWbuDJbOwHxjLPX3Ds7tl2pqGyS+C9nf0qJD9vgFhLaNHRkAShuDQyz4 +nnt1OvsvVLG8QUdPpHUuDQAEagPPZ/mlkHK/LROTq8M4kwmzu+rm8nIsVxUzlOS8o95 Ua7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=lf6aquhYve72eJCZntI4Rt5ze2QbgTdCj7TaYNAbuKo=; b=kCCAU5PO/pD/AGGGeyc41Eq02mW0Dj9hzBU+tECvLr/4400DFhVfma4C/3liDIwFlk XM5atBF8MbMYqpD4gKdCtjE+wXU3jSZW70usRgdsknVMvzMaC+g7lT39zwXdLZ/5cg90 xcybX54UFOgf8CtTcHxlUjsgfpskG659NE650nywOcDojMZ2GqHa9uaOD5alnbdpX7+y CeiKit5bFcGhsGZOkh+FjsnM2QvYdSpcq+F6BmIErwHzKY4+y7o66qp5M8rODT/abOCT fXkunt7qbrhhTLK9KlzXY+0cNfgQW2ugFrmi5TBUxxQ3dyATs7VMFebZxPljujF3QJuW KwqA== X-Gm-Message-State: AD7BkJLtBh2VJyMF4VwsetdekH01Yx7NBZ7bKfv6Phw4WSnwBDlh6b9HGGf/Vyd55yRNulK0F74lIs6ECWvSJw== MIME-Version: 1.0 X-Received: by 10.50.13.8 with SMTP id d8mr3406708igc.37.1456500565092; Fri, 26 Feb 2016 07:29:25 -0800 (PST) Received: by 10.36.14.19 with HTTP; Fri, 26 Feb 2016 07:29:25 -0800 (PST) In-Reply-To: <56D03253.1040200@bader-muenchen.de> References: <56D03253.1040200@bader-muenchen.de> Date: Fri, 26 Feb 2016 07:29:25 -0800 Message-ID: Subject: Re: ath0 (wlan0) not working in virtulised guest with bhyve From: Adrian Chadd To: richard bader Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 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: Fri, 26 Feb 2016 15:29:26 -0000 hm, no idea. whats vmstat -ia in the guest say? -a On 26 February 2016 at 03:09, richard bader wrote: > Hello, > > using ath0 (and wlan) on the host is work fine. But trying the same on the > guest does not work. > > on the host freebsd 10.2 ist running > on the guest freebsd 10.3 (10.3-BETA2 FreeBSD 10.3-BETA2 #0) is running > > the guest was started with: > /usr/sbin/bhyve -c 2 -m 2048M -A -H -P -g 0 -s 0:0,hostbridge -s > 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-net,tap1 -s > 4:0,virtio-blk,wlan.bader.loc.img -s 5,passthru,5/0/0 -l com1,stdio wlan > > As simple experiment I try to scan for wlans using: > root@wlan:~ #ifconfig wlan0 create wlandev ath0 && ifconfig wlan0 up scan > but no wlan appears. > > the output of 'ifconfig wlan0' is the same as on the working host: > > root@wlan:~ # ifconfig wlan0 > wlan0: flags=8c43 metric 0 > mtu 1500 > ether f4:f2:6d:7d:e7:52 > inet6 fe80::f6f2:6dff:fe7d:e752%wlan0 prefixlen 64 scopeid 0x5 > nd6 options=21 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 13 (2472 MHz 11g) > regdomain 32924 country CN indoor ecm authmode OPEN privacy OFF > txpower 20 bmiss 7 scanvalid 60 protmode CTS wme burst bintval 0 > > the output for 'ssid "" channel 13 (2472 MHz 11g)' changes cyclic. > > > root@wlan:~ # dmesg | grep ath0 > ath0: mem 0xc0010000-0xc001ffff irq 16 at device 5.0 on pci0 > ath0: [HT] enabling HT modes > ath0: [HT] enabling short-GI in 20MHz mode > ath0: [HT] 1 stream STBC receive enabled > ath0: [HT] 1 stream STBC transmit enabled > ath0: [HT] 2 RX streams; 2 TX streams > ath0: AR9287 mac 384.2 RF5133 phy 15.15 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > > > root@wlan:~ # /usr/src/tools/tools/ath/athstats/athstats > 235 data frames received > 989 data frames transmit > 1M current transmit rate > 50 rx failed 'cuz of bad CRC > -0/+0 TDMA slot adjust (usecs, smoothed) > 11 avg recv rssi > -96 rx noise floor > 989 tx frames through raw api > 1 OFDM weak signal detect > 990 ANI disabled OFDM weak signal detect > 990 ANI disabled CCK weak signal threshold > 3 bad FCS > 11 average rssi (beacons only) > Antenna profile: > [0] tx 988 rx 0 > [1] tx 0 rx 235 > > > any hints to get it working? > > thanks > > richard > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"