From owner-freebsd-wireless@freebsd.org Mon May 18 15:42:26 2020 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8CB072CDD6C for ; Mon, 18 May 2020 15:42:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49Qjv61hzSz3g78 for ; Mon, 18 May 2020 15:42:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 3A52E2CDC97; Mon, 18 May 2020 15:42:26 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3A1C62CDB7E for ; Mon, 18 May 2020 15:42:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Qjv60qCPz3g2p; Mon, 18 May 2020 15:42:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-x842.google.com with SMTP id 4so8441876qtb.4; Mon, 18 May 2020 08:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DbDg+FmWTPk3G4uGmf/xCxpZxPTj0YEJmZiAtMeGtpM=; b=R5WJsYJnxS5wm+mAJezEViW4WDi6FDJyBsv4x7pCWQrWDrVmuuUnZtoDE5Yi1vmj+s OSKB7oeJy0l3X+yLpPMoQRlQEiHAhnRunWrIHieHxFmidgLciUD/NNTmele6piqirPR+ Wwsr+vOO5ffa1x2DdoBm3xyxhG6i4DLq78wqQ7INVdgMVwB9I6sCgAawmYticyDmf+dW vO4OCoLkXEHDsibfuW4SJMKORUjCeKyHZQD68w9Tw2w281e6kPDz0S45wDfdtq10+Gb4 mysvigAoyp1WeqWXwuG7HvxJtc+sbsjeuqQzx+ky+iChAGI5SaYXayIjFNaQefjbBqVD gClw== 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=DbDg+FmWTPk3G4uGmf/xCxpZxPTj0YEJmZiAtMeGtpM=; b=aBdM1lbXR6jUqvsSnDXWbrt5yMOn3KTAhIxqkb4LtabjyOiRmZpUevyEiDZoNvWyco thyvsZgMJ2UFWMaOKgSgmmi9CrLm7sy4ZKUVhgqPiYDjowytJlWMaHUfdefo8QHATrtc FlMn5O6AZjRikCF63rT4pPzwOnvOPqq2/myDy9U8cGeuk8KMPrswjEIIh9vn23wgiiuN XR0Fwz4JOf/dy892zcYKYJiJP3xpPV3JVVAHIwVP8meuZZtnnBQTvsBcATzkmmpwq1eu jqn8bsAhzF24rh74tuMETAgTIX/1lZ8qtS1OXoWusIvrXcG2FAn6DlmcYtBSDhEhju/C 0CiQ== X-Gm-Message-State: AOAM5315DZBturm0dSvBLU3deXi1v3fYE4hYMgF9h1qAQDp5CqtMSd5D 0M8jhze6mBpyEkXvbDYHeOmDUbuSQ4rD3ChKFvKGow== X-Google-Smtp-Source: ABdhPJy7gU4hV/dDt0TFyJz1GxLvUTxLQuD2LDYH3QQDhdJYc/mCZBF5Z6cSKhJlGDoU9EvbTQ1xdyGQNRE32OdFqMM= X-Received: by 2002:ac8:4a1a:: with SMTP id x26mr14353594qtq.94.1589816544223; Mon, 18 May 2020 08:42:24 -0700 (PDT) MIME-Version: 1.0 References: <15021eed-2d82-5391-0edc-8d328e3ba31d@FreeBSD.org> In-Reply-To: <15021eed-2d82-5391-0edc-8d328e3ba31d@FreeBSD.org> From: Adrian Chadd Date: Mon, 18 May 2020 08:42:11 -0700 Message-ID: Subject: Re: iwm rfkill To: Andriy Gapon Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49Qjv60qCPz3g2p X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.33 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, 18 May 2020 15:42:26 -0000 On Mon, 18 May 2020 at 00:57, Andriy Gapon wrote: > > > I am trying to get my laptop fully functional and one of the things that > currently does not work as expected is a Wi-Fi / Radio special key. > It seems to be handled fully in hardware (but not 100% sure), but when I press > it only bluetooth is turned off, but Wi-Fi stays on. > > This is the hardware: > iwm0: mem 0xfe800000-0xfe801fff at device > 0.0 on pci3 > iwm0: hw rev 0x220, fw ver 22.361476.0, address xx > > When I press the key I see these messages: > iwm0: iwm_intr: rfkill switch, disabling interface > ugen0.6: at usbus0 (disconnected) > ubt0: at uhub1, port 4, addr 5 (disconnected) > ubt0: detached > > However, ifconfig still shows that wlan0 is UP and RUNNING and the traffic keeps > flowing. > > So, it seems that the RF KILL bit gets set and it's detected by the driver, but > whatever the driver does is not enough to turn off the Wi-Fi. > Does anyone have any patches or suggestions or pointers (documentation, etc) ? It should be pretty easy to hack in; look at what iwn does? It should just do a software thing to disable the interface in software. -adrian > > Thanks! > -- > Andriy Gapon > _______________________________________________ > 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"