AP: Use MLD address for traffic tests
In case of MLD use the MLD address. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
6046aef734
commit
8b56536693
1 changed files with 6 additions and 1 deletions
|
@ -1836,6 +1836,7 @@ static int hostapd_ctrl_iface_data_test_config(struct hostapd_data *hapd,
|
||||||
int enabled = atoi(cmd);
|
int enabled = atoi(cmd);
|
||||||
char *pos;
|
char *pos;
|
||||||
const char *ifname;
|
const char *ifname;
|
||||||
|
const u8 *addr = hapd->own_addr;
|
||||||
|
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
if (hapd->l2_test) {
|
if (hapd->l2_test) {
|
||||||
|
@ -1856,7 +1857,11 @@ static int hostapd_ctrl_iface_data_test_config(struct hostapd_data *hapd,
|
||||||
else
|
else
|
||||||
ifname = hapd->conf->iface;
|
ifname = hapd->conf->iface;
|
||||||
|
|
||||||
hapd->l2_test = l2_packet_init(ifname, hapd->own_addr,
|
#ifdef CONFIG_IEEE80211BE
|
||||||
|
if (hapd->conf->mld_ap)
|
||||||
|
addr = hapd->mld_addr;
|
||||||
|
#endif /* CONFIG_IEEE80211BE */
|
||||||
|
hapd->l2_test = l2_packet_init(ifname, addr,
|
||||||
ETHERTYPE_IP, hostapd_data_test_rx,
|
ETHERTYPE_IP, hostapd_data_test_rx,
|
||||||
hapd, 1);
|
hapd, 1);
|
||||||
if (hapd->l2_test == NULL)
|
if (hapd->l2_test == NULL)
|
||||||
|
|
Loading…
Reference in a new issue