Message ID | 20230918140607.043589fb2a4d.I8086c0fdbbf92537d6a8b8e80b33387fcfd5553d@changeid |
---|---|
State | Superseded |
Headers | show |
Series | [01/18] wifi: mac80211: use bandwidth indication element for CSA | expand |
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 7d69fd2713a8..10a762816146 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -7889,8 +7889,10 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, /* only calculate the flags, hence link == NULL */ err = ieee80211_prep_channel(sdata, NULL, assoc_data->link[i].bss, &assoc_data->link[i].conn_flags); - if (err) + if (err) { + req->links[i].error = err; goto err_clear; + } } /* needed for transmitting the assoc frames properly */