Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1831331yba; Fri, 10 May 2019 01:38:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6o+jhVY0TjAm6CXMNodWhW2pYU7G3TiksKVyf7M0+tefvT6uhZp6FAksTWmvkJfJWYQ6f X-Received: by 2002:a17:902:3064:: with SMTP id u91mr11450505plb.181.1557477497089; Fri, 10 May 2019 01:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557477497; cv=none; d=google.com; s=arc-20160816; b=Mnd7PRmFwluy2WI58AJdrC+DjmII+RXd21uYjdeqEWGzjuw0iyOswoEQmPK6Fw1ENt tpNDHlMnDKEvqEq2b4NGO0Jsxz+kXQJsc9ypmCeDQwUcK2mhBmfB2ITCh59P8QODvZob i+9FHK4u5nYPO5ttYf+M3MCl7O5d4W0npx89K0KeIHIdV9zm04yXp8nBbXmppLiRlQ6Y G5OKNp333vqp9L5ouGWmOOt+JZMNODzis/E+/AR3l7Ed1OB5hPcHHqF3AeCletPAAaEm jXBp8D63/0+cm9tu9gCwOIVXNzYJ1OBnNaRk3HGRM3q+9ojIhc+5HqEgvnoYMw/PjRla NviA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6q0OaTNhxy4z4NJtiUVwPY8QmQQzdj/ZZVApy0GJMI4=; b=Lx9qYf9UGgQCSj8uSVOWX87XpjW0tKjnymJ1UcZW5WBAnuo7D8/7IPIPVMmBiXpDi4 elhaIrV8MjjBR4YBaMtEctNb3uupN841WOCpbk1vIBWKEALHT6GiVCgBJ66hU57gjFYt 6zdQdlSheymNq/zI/hUMlCta8kv90M9zX73atGs6bmFx8nOpUw4hwKn7hTTZlqwMRMLH yjo49SeA5bjlhb/9jY5avTW9sIYqykbPvpkIRKMlJqNSIgCLps68yBBreDi4mx/tdl/3 C0FEbs2Cbfleyxgacwe1YxEwtj6WRtfmXeORxvfNzRkPaN0txbP/ABM0Wv2UlawQ6Mzo qcKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=iELlAWp8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si5042528pgp.587.2019.05.10.01.37.57; Fri, 10 May 2019 01:38:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=iELlAWp8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727094AbfEJIhE (ORCPT + 99 others); Fri, 10 May 2019 04:37:04 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38453 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbfEJIhE (ORCPT ); Fri, 10 May 2019 04:37:04 -0400 Received: by mail-qt1-f194.google.com with SMTP id d13so5676081qth.5 for ; Fri, 10 May 2019 01:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6q0OaTNhxy4z4NJtiUVwPY8QmQQzdj/ZZVApy0GJMI4=; b=iELlAWp8uu1w9QKiqsaCDDQUQZVz8W7Axyi1mnxbi0BiAfs+E4txY0WxHylQWI7/Ie kEl6z5C/Emaw0fQRI6D7NkEJhoFhEmattbkSrZj6CnA4samxPOlYRqcjwt0uyWUpXOwt MSCK8uPjMuzMjgx7xg4cIRI4vmsDnrucQVGgHCeFPGyUkUxqw6aAeChk/AFFHS7mw7F6 sMMJz+grUiuBh91XLPH5oEAuTVGufIx5c7IRSYlZnveFOb3HVEKgbP8rPku1Ktqebwmb zU7I/kHcwWHm8kcSyzf8eHN2KGexnO6N3bBc3Xy9+xssu+OtLg6gop+0xBAWBoQ4Bd5m BsEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6q0OaTNhxy4z4NJtiUVwPY8QmQQzdj/ZZVApy0GJMI4=; b=PMzQTQS+QoflGeL0Fr1+NWqqnFBWenhHW1jN81h5PgpLCH4jfWpwONag/t81c09TxA Gnob6rNuZEFnhCqXl6THdM6EeTn8FylsZCAGssNlVYKIU42Tu1UIgByCafm93vW0KMJU WcBPcX1wS+v56LrPdnjH5mWwjN6S9Pd76vPrUYQL1WXfeoB5DFnAEgcDbW+bI3kkmqx0 BlPaO6rHOKG9IJhR4sRVUULolsSyjI2miB2hPacUS+fwoRb0eJYni9z+++REB7n/YvB8 EdUNR7z9GVjN6j/7zGBsUHEnXo4sDvYPbX4+n6DtsHtWO1pBo8dZbrsTHCxJhhhECJtu Dvbw== X-Gm-Message-State: APjAAAVffdjKQ7VJJ5T/AKoxJFsqhFZEp/XY8HkHJvafG+j1EUVuEl8L eSXl0YXW4u46/23J/IF/x9Zl4FgwZZ6zDhS7eIV/KQ== X-Received: by 2002:a0c:8a93:: with SMTP id 19mr820888qvv.7.1557477423165; Fri, 10 May 2019 01:37:03 -0700 (PDT) MIME-Version: 1.0 References: <20190503072146.49999-1-chiu@endlessm.com> <20190503072146.49999-3-chiu@endlessm.com> In-Reply-To: From: Chris Chiu Date: Fri, 10 May 2019 16:36:51 +0800 Message-ID: Subject: Re: [RFC PATCH 2/2] rtl8xxxu: Add watchdog to update rate mask by signal strength To: Daniel Drake Cc: Jes Sorensen , Kalle Valo , David Miller , linux-wireless , netdev , Linux Kernel , Linux Upstreaming Team , Larry Finger Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 9, 2019 at 7:24 PM Daniel Drake wrote: > > On Thu, May 9, 2019 at 5:17 PM Chris Chiu wrote: > > I need the vif because there's seems no easy way to get RSSI. Please > > suggest if there's any better idea for this. I believe multiple vifs is for AP > > mode (with more than 1 virtual AP/SSIDs) and the Station+AP coexist > > mode. But the rtl8xxxu driver basically supports only Station mode. > > Yes, the driver only lets you create station interfaces, but it lets > you create several of them. > I'm not sure if that is intentional (and meaningful), or if its a bug. > Maybe you can experiment with multiple station interfaces and see if > it works in a meaningful way? > > Daniel I've verified that multiple virtual interface can not work simultaneously in STA mode. I assigned different mac address for different vifs, I can only bring only one interface up. If I want to bring the second vif up, it always complains "SIOCSIFFLAGS: Device or resource busy". But I'm sure that STA vif can coexist with monitor mode vif. So I may need to add the code login to make the watchdog only work with the vif in STA mode. Then I can also store vif in the rtl8xxxu_priv structure if we presume it only works for station mode. Anyone can suggest whether if this assumption is correct or not? Chris