In ieee802_1x_ml_set_sta_authorized() when trying to update partner link
STA's flag, AID checking is not sufficient enough as AID is always 0 for
SME-in-driver cases.
Check for STA MLD address to avoid wrongly update other STA's flag.
Signed-off-by: Huang Chenming <chenhuan@qti.qualcomm.com>
tmp_sta->aid != sta->aid)
continue;
+ if (!ether_addr_equal(
+ tmp_sta->mld_info.common_info.mld_addr,
+ sta->mld_info.common_info.mld_addr))
+ continue;
+
ieee802_1x_set_authorized(tmp_hapd, tmp_sta,
authorized, true);
break;