summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAditya Kumar Singh <quic_adisi@quicinc.com>2024-01-30 19:39:14 +0530
committerJohannes Berg <johannes.berg@intel.com>2024-02-08 15:00:45 +0100
commit4ace04c0bdbde3b028ec0a5a3be2471cdb1efb67 (patch)
tree4a0599280d8baf126323e22ff4c5b0481122abb4 /net
parent21c3f8f95554feff9bed15703e89adbe582e0383 (diff)
wifi: cfg80211: send link id in channel_switch ops
Currently, during channel switch, no link id information is passed down. In order to support channel switch during Multi Link Operation, it is required to pass link id as well. Add changes to pass link id in the channel_switch cfg80211_ops. Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com> Link: https://msgid.link/20240130140918.1172387-2-quic_adisi@quicinc.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/nl80211.c1
-rw-r--r--net/wireless/trace.h7
2 files changed, 6 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index b533412ad1e0..e1106ae35e21 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -10222,6 +10222,7 @@ skip_beacons:
if (info->attrs[NL80211_ATTR_CH_SWITCH_BLOCK_TX])
params.block_tx = true;
+ params.link_id = link_id;
err = rdev_channel_switch(rdev, dev, &params);
free:
diff --git a/net/wireless/trace.h b/net/wireless/trace.h
index ae5e585b6863..194ea2471717 100644
--- a/net/wireless/trace.h
+++ b/net/wireless/trace.h
@@ -2332,6 +2332,7 @@ TRACE_EVENT(rdev_channel_switch,
__field(u8, count)
__dynamic_array(u16, bcn_ofs, params->n_counter_offsets_beacon)
__dynamic_array(u16, pres_ofs, params->n_counter_offsets_presp)
+ __field(u8, link_id)
),
TP_fast_assign(
WIPHY_ASSIGN;
@@ -2349,11 +2350,13 @@ TRACE_EVENT(rdev_channel_switch,
memcpy(__get_dynamic_array(pres_ofs),
params->counter_offsets_presp,
params->n_counter_offsets_presp * sizeof(u16));
+ __entry->link_id = params->link_id;
),
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT
- ", block_tx: %d, count: %u, radar_required: %d",
+ ", block_tx: %d, count: %u, radar_required: %d, link_id: %d",
WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG,
- __entry->block_tx, __entry->count, __entry->radar_required)
+ __entry->block_tx, __entry->count, __entry->radar_required,
+ __entry->link_id)
);
TRACE_EVENT(rdev_set_qos_map,