History

cfg80211: rename offchannel_chain structs to background_chain to avoid confusion with ETSI standard

ETSI standard defines "Offchannel CAC" as: "Off-Channel CAC is performed by a number of non-continuous checks spread over a period in time. This period, which is required to determine the presence of radar signals, is defined as the Off-Channel CAC Time.. Minimum Off-Channel CAC Time 6 minutes and Maximum Off-Channel CAC Time 4 hours..". mac80211 implementation refers to a dedicated hw chain used for continuous radar monitoring. Rename offchannel_* references to background_* in order to avoid confusion with ETSI standard.

Lorenzo Bianconi committed 4 years ago

Commit a95bfb81 parent 852a07c11 files · +102 −100Browse files

Showing the changes to include (3 of 11 files). Show all

Unified · Split

3 files
  1. include/net/cfg80211.h +10 −10
  2. include/net/mac80211.h +5 −5
  3. include/uapi/linux/nl80211.h +7 −7
include/net/cfg80211.h+10−10
@@ -4073,14 +4073,14 @@ struct mgmt_frame_regs { · 4072 unmodified lines
40734073 * those to decrypt (Re)Association Request and encrypt (Re)Association
40744074 * Response frame.
40754075 *
4076− * @set_radar_offchan: Configure dedicated offchannel chain available for
4076+ * @set_radar_background: Configure dedicated offchannel chain available for
40774077 * radar/CAC detection on some hw. This chain can't be used to transmit
40784078 * or receive frames and it is bounded to a running wdev.
4079− * Offchannel radar/CAC detection allows to avoid the CAC downtime
4079+ * Background radar/CAC detection allows to avoid the CAC downtime
40804080 * switching to a different channel during CAC detection on the selected
40814081 * radar channel.
40824082 * The caller is expected to set chandef pointer to NULL in order to
4083− * disable offchannel CAC/radar detection.
4083+ * disable background CAC/radar detection.
40844084 */
40854085 struct cfg80211_ops {
40864086 int (*suspend)(struct wiphy *wiphy, struct cfg80211_wowlan *wow);
@@ -4413,8 +4413,8 @@ struct cfg80211_ops { · 326 unmodified lines
44134413 struct cfg80211_color_change_settings *params);
44144414 int (*set_fils_aad)(struct wiphy *wiphy, struct net_device *dev,
44154415 struct cfg80211_fils_aad *fils_aad);
4416− int (*set_radar_offchan)(struct wiphy *wiphy,
4417− struct cfg80211_chan_def *chandef);
4416+ int (*set_radar_background)(struct wiphy *wiphy,
4417+ struct cfg80211_chan_def *chandef);
44184418 };
44194419
44204420 /*
@@ -7626,9 +7626,9 @@ cfg80211_radar_event(struct wiphy *wiphy, · 3205 unmodified lines
76267626 }
76277627
76287628 static inline void
7629−cfg80211_offchan_radar_event(struct wiphy *wiphy,
7630− struct cfg80211_chan_def *chandef,
7631− gfp_t gfp)
7629+cfg80211_background_radar_event(struct wiphy *wiphy,
7630+ struct cfg80211_chan_def *chandef,
7631+ gfp_t gfp)
76327632 {
76337633 __cfg80211_radar_event(wiphy, chandef, true, gfp);
76347634 }
@@ -7663,13 +7663,13 @@ void cfg80211_cac_event(struct net_device *netdev, · 28 unmodified lines
76637663 enum nl80211_radar_event event, gfp_t gfp);
76647664
76657665 /**
7666− * cfg80211_offchan_cac_abort - Channel Availability Check offchan abort event
7666+ * cfg80211_background_cac_abort - Channel Availability Check offchan abort event
76677667 * @wiphy: the wiphy
76687668 *
76697669 * This function is called by the driver when a Channel Availability Check
76707670 * (CAC) is aborted by a offchannel dedicated chain.
76717671 */
7672−void cfg80211_offchan_cac_abort(struct wiphy *wiphy);
7672+void cfg80211_background_cac_abort(struct wiphy *wiphy);
76737673
76747674 /**
76757675 * cfg80211_gtk_rekey_notify - notify userspace about driver rekeying
include/net/mac80211.h+5−5
@@ -3939,14 +3939,14 @@ struct ieee80211_prep_tx_info { · 3938 unmodified lines
39393939 * twt structure.
39403940 * @twt_teardown_request: Update the hw with TWT teardown request received
39413941 * from the peer.
3942− * @set_radar_offchan: Configure dedicated offchannel chain available for
3942+ * @set_radar_background: Configure dedicated offchannel chain available for
39433943 * radar/CAC detection on some hw. This chain can't be used to transmit
39443944 * or receive frames and it is bounded to a running wdev.
3945− * Offchannel radar/CAC detection allows to avoid the CAC downtime
3945+ * Background radar/CAC detection allows to avoid the CAC downtime
39463946 * switching to a different channel during CAC detection on the selected
39473947 * radar channel.
39483948 * The caller is expected to set chandef pointer to NULL in order to
3949− * disable offchannel CAC/radar detection.
3949+ * disable background CAC/radar detection.
39503950 * @net_fill_forward_path: Called from .ndo_fill_forward_path in order to
39513951 * resolve a path for hardware flow offloading
39523952 */
@@ -4277,8 +4277,8 @@ struct ieee80211_ops { · 324 unmodified lines
42774277 struct ieee80211_twt_setup *twt);
42784278 void (*twt_teardown_request)(struct ieee80211_hw *hw,
42794279 struct ieee80211_sta *sta, u8 flowid);
4280− int (*set_radar_offchan)(struct ieee80211_hw *hw,
4281− struct cfg80211_chan_def *chandef);
4280+ int (*set_radar_background)(struct ieee80211_hw *hw,
4281+ struct cfg80211_chan_def *chandef);
42824282 int (*net_fill_forward_path)(struct ieee80211_hw *hw,
42834283 struct ieee80211_vif *vif,
42844284 struct ieee80211_sta *sta,
include/uapi/linux/nl80211.h+7−7
@@ -2646,10 +2646,10 @@ enum nl80211_commands { · 2645 unmodified lines
26462646 * Mandatory parameter for the transmitting interface to enable MBSSID.
26472647 * Optional for the non-transmitting interfaces.
26482648 *
2649− * @NL80211_ATTR_RADAR_OFFCHAN: Configure dedicated offchannel chain available for
2650− * radar/CAC detection on some hw. This chain can't be used to transmit
2651− * or receive frames and it is bounded to a running wdev.
2652− * Offchannel radar/CAC detection allows to avoid the CAC downtime
2649+ * @NL80211_ATTR_RADAR_BACKGROUND: Configure dedicated offchannel chain
2650+ * available for radar/CAC detection on some hw. This chain can't be used
2651+ * to transmit or receive frames and it is bounded to a running wdev.
2652+ * Background radar/CAC detection allows to avoid the CAC downtime
26532653 * switching on a different channel during CAC detection on the selected
26542654 * radar channel.
26552655 *
@@ -3159,7 +3159,7 @@ enum nl80211_attrs { · 503 unmodified lines
31593159 NL80211_ATTR_MBSSID_CONFIG,
31603160 NL80211_ATTR_MBSSID_ELEMS,
31613161
3162− NL80211_ATTR_RADAR_OFFCHAN,
3162+ NL80211_ATTR_RADAR_BACKGROUND,
31633163
31643164 /* add attributes here, update the policy in nl80211.c */
31653165
@@ -6066,7 +6066,7 @@ enum nl80211_feature_flags { · 2900 unmodified lines
60666066 * frames. Userspace has to share FILS AAD details to the driver by using
60676067 * @NL80211_CMD_SET_FILS_AAD.
60686068 *
6069− * @NL80211_EXT_FEATURE_RADAR_OFFCHAN: Device supports offchannel radar/CAC
6069+ * @NL80211_EXT_FEATURE_RADAR_BACKGROUND: Device supports background radar/CAC
60706070 * detection.
60716071 *
60726072 * @NUM_NL80211_EXT_FEATURES: number of extended features.
@@ -6135,7 +6135,7 @@ enum nl80211_ext_feature_index { · 62 unmodified lines
61356135 NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE,
61366136 NL80211_EXT_FEATURE_BSS_COLOR,
61376137 NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD,
6138− NL80211_EXT_FEATURE_RADAR_OFFCHAN,
6138+ NL80211_EXT_FEATURE_RADAR_BACKGROUND,
61396139
61406140 /* add new features before the definition below */
61416141 NUM_NL80211_EXT_FEATURES,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t