mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
wifi: mac80211_hwsim: Support link channel matching on rx
Accept frames from all the links' channels. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
0bd5093255
commit
912fa56b27
|
|
@ -1474,15 +1474,25 @@ static void mac80211_hwsim_tx_iter(void *_data, u8 *addr,
|
|||
struct ieee80211_vif *vif)
|
||||
{
|
||||
struct tx_iter_data *data = _data;
|
||||
int i;
|
||||
|
||||
if (!vif->bss_conf.chanctx_conf)
|
||||
for (i = 0; i < ARRAY_SIZE(vif->link_conf); i++) {
|
||||
struct ieee80211_bss_conf *conf = vif->link_conf[i];
|
||||
struct ieee80211_chanctx_conf *chanctx;
|
||||
|
||||
if (!conf)
|
||||
continue;
|
||||
|
||||
chanctx = rcu_dereference(conf->chanctx_conf);
|
||||
if (!chanctx)
|
||||
continue;
|
||||
|
||||
if (!hwsim_chans_compat(data->channel, chanctx->def.chan))
|
||||
continue;
|
||||
|
||||
data->receive = true;
|
||||
return;
|
||||
|
||||
if (!hwsim_chans_compat(data->channel,
|
||||
rcu_dereference(vif->bss_conf.chanctx_conf)->def.chan))
|
||||
return;
|
||||
|
||||
data->receive = true;
|
||||
}
|
||||
}
|
||||
|
||||
static void mac80211_hwsim_add_vendor_rtap(struct sk_buff *skb)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user