Skip to contentSkip to conversation

cfg80211: add more comments for ap_isolate in bss_parameters

PATCH In review Wright Feng 2 participants 2 messages Sep 8, 2020 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfg80211: add more comments for ap_isolate in bss_parameters

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.

---
 include/net/cfg80211.h | 1 +
 1 file changed, 1 insertion(+)
include/net/cfg80211.h +1 -0
index fc7e8807838d..f60281c866dc 100644
@@ -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)
Signature · 1 line
2.25.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Wright Feng

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.

Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches