Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH] station: don't enable OCV unless MFPC is supported
Date: Tue, 19 Oct 2021 13:11:17 -0700	[thread overview]
Message-ID: <20211019201117.564803-1-prestwoj@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 482 bytes --]

---
 src/station.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/station.c b/src/station.c
index 1b9215d8..a972b4fa 100644
--- a/src/station.c
+++ b/src/station.c
@@ -1087,7 +1087,7 @@ build_ie:
 					&disable_ocv))
 		disable_ocv = false;
 
-	info.ocvc = !disable_ocv && bss_info.ocvc;
+	info.ocvc = !disable_ocv && bss_info.ocvc && info.mfpc;
 
 	/*
 	 * IEEE 802.11-2020 9.4.2.24.4 states extended key IDs can only be used
-- 
2.31.1

             reply	other threads:[~2021-10-19 20:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-19 20:11 James Prestwood [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-19 22:05 [PATCH] station: don't enable OCV unless MFPC is supported Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211019201117.564803-1-prestwoj@gmail.com \
    --to=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox