diff mbox series

cfg80211: add more comments for ap_isolate in bss_parameters

Message ID 20200908060157.98846-1-wright.feng@cypress.com (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show
Series cfg80211: add more comments for ap_isolate in bss_parameters | expand

Commit Message

Wright Feng Sept. 8, 2020, 6:01 a.m. UTC
The value of struct bss_parameters::ap_isolate will be -1, 0 or 1.
The value -1 means not to change. To prevent developers from thinking
ap_isolate is only 0 or 1, I add more comments on it.

Signed-off-by: Wright Feng <wright.feng@cypress.com>
---
 include/net/cfg80211.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Kalle Valo Sept. 8, 2020, 6:29 a.m. UTC | #1
Wright Feng <wright.feng@cypress.com> writes:

> The value of struct bss_parameters::ap_isolate will be -1, 0 or 1.
> The value -1 means not to change. To prevent developers from thinking
> ap_isolate is only 0 or 1, I add more comments on it.
>
> Signed-off-by: Wright Feng <wright.feng@cypress.com>

Reviewed-by: Kalle Valo <kvalo@codeaurora.org>
diff mbox series

Patch

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index fc7e8807838d..f60281c866dc 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1764,6 +1764,7 @@  struct mpath_info {
  *	(or NULL for no change)
  * @basic_rates_len: number of basic rates
  * @ap_isolate: do not forward packets between connected stations
+ *	(0 = no, 1 = yes, -1 = do not change)
  * @ht_opmode: HT Operation mode
  *	(u16 = opmode, -1 = do not change)
  * @p2p_ctwindow: P2P CT Window (-1 = no change)