diff --git a/_build/0300-Revert-wifi-cfg80211-support-MAC-address-filtering-in-station-dump.patch b/_build/0300-Revert-wifi-cfg80211-support-MAC-address-filtering-in-station-dump.patch new file mode 100644 index 00000000..a412e3f0 --- /dev/null +++ b/_build/0300-Revert-wifi-cfg80211-support-MAC-address-filtering-in-station-dump.patch @@ -0,0 +1,80 @@ +Revert "wifi: cfg80211: support MAC address filtering in station dump for link stats" + +This reverts upstream commit f9202a374ec34e767185cf44f44ed2fbdf6bf053. + +diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c +index 242071ad10d6..be16a40132ff 100644 +--- a/net/wireless/nl80211.c ++++ b/net/wireless/nl80211.c +@@ -8474,8 +8474,6 @@ struct nl80211_dump_station_ctx { + int link_idx; + enum nl80211_dump_station_phase phase; + bool dump_link_stats; +- bool filter_mac; +- u8 filter_mac_addr[ETH_ALEN]; + u8 mac_addr[ETH_ALEN]; + struct station_info sinfo; + }; +@@ -8545,22 +8543,10 @@ static int nl80211_dump_station(struct sk_buff *skb, + err = -ENOMEM; + goto out_err; + } +- cb->args[2] = (long)ctx; + ctx->phase = NL80211_DUMP_STA_PHASE_AGGREGATED; + ctx->dump_link_stats = + !!attrbuf[NL80211_ATTR_STA_DUMP_LINK_STATS]; +- if (attrbuf[NL80211_ATTR_MAC]) { +- const u8 *mac = nla_data(attrbuf[NL80211_ATTR_MAC]); +- +- if (!is_valid_ether_addr(mac)) { +- kfree(ctx); +- cb->args[2] = 0; +- err = -EINVAL; +- goto out_err; +- } +- ctx->filter_mac = true; +- memcpy(ctx->filter_mac_addr, mac, ETH_ALEN); +- } ++ cb->args[2] = (long)ctx; + } + + if (!wdev->netdev && wdev->iftype != NL80211_IFTYPE_NAN) { +@@ -8568,12 +8554,7 @@ static int nl80211_dump_station(struct sk_buff *skb, + goto out_err; + } + +- if (ctx->filter_mac) { +- if (!rdev->ops->get_station) { +- err = -EOPNOTSUPP; +- goto out_err; +- } +- } else if (!rdev->ops->dump_station) { ++ if (!rdev->ops->dump_station) { + err = -EOPNOTSUPP; + goto out_err; + } +@@ -8594,22 +8575,8 @@ static int nl80211_dump_station(struct sk_buff *skb, + } + } + +- if (ctx->filter_mac) { +- if (ctx->sta_idx > 0) { +- err = skb->len; +- goto out_err_release; +- } +- err = rdev_get_station(rdev, wdev, +- ctx->filter_mac_addr, +- &ctx->sinfo); +- if (!err) +- memcpy(ctx->mac_addr, +- ctx->filter_mac_addr, ETH_ALEN); +- } else { +- err = rdev_dump_station(rdev, wdev, ctx->sta_idx, +- ctx->mac_addr, +- &ctx->sinfo); +- } ++ err = rdev_dump_station(rdev, wdev, ctx->sta_idx, ++ ctx->mac_addr, &ctx->sinfo); + if (err == -ENOENT) { + err = skb->len; + goto out_err_release; diff --git a/_build/0301-nl80211-do-not-set-NLA_F_NESTED-on-station-info-nests.patch b/_build/0301-nl80211-do-not-set-NLA_F_NESTED-on-station-info-nests.patch new file mode 100644 index 00000000..30c7a948 --- /dev/null +++ b/_build/0301-nl80211-do-not-set-NLA_F_NESTED-on-station-info-nests.patch @@ -0,0 +1,43 @@ +nl80211: do not set NLA_F_NESTED on station info nests + +Partially reverts upstream commit 4b40378ac203 ("wifi: cfg80211: Add +helper to pack station-level STA_INFO", merged in v7.3). + +--- a/net/wireless/nl80211.c ++++ b/net/wireless/nl80211.c +@@ -8049,7 +8049,7 @@ + { + struct nlattr *sinfoattr, *bss_param; + +- sinfoattr = nla_nest_start(msg, NL80211_ATTR_STA_INFO); ++ sinfoattr = nla_nest_start_noflag(msg, NL80211_ATTR_STA_INFO); + if (!sinfoattr) + return -EMSGSIZE; + +@@ -8142,7 +8142,7 @@ + PUT_SINFO_U64(T_OFFSET, t_offset); + + if (sinfo->filled & BIT_ULL(NL80211_STA_INFO_BSS_PARAM)) { +- bss_param = nla_nest_start(msg, NL80211_STA_INFO_BSS_PARAM); ++ bss_param = nla_nest_start_noflag(msg, NL80211_STA_INFO_BSS_PARAM); + if (!bss_param) + goto nla_put_failure; + +@@ -8184,7 +8184,7 @@ + struct nlattr *tidsattr; + int tid; + +- tidsattr = nla_nest_start(msg, NL80211_STA_INFO_TID_STATS); ++ tidsattr = nla_nest_start_noflag(msg, NL80211_STA_INFO_TID_STATS); + if (!tidsattr) + goto nla_put_failure; + +@@ -8197,7 +8197,7 @@ + if (!tidstats->filled) + continue; + +- tidattr = nla_nest_start(msg, tid + 1); ++ tidattr = nla_nest_start_noflag(msg, tid + 1); + if (!tidattr) + goto nla_put_failure; + diff --git a/_build/series b/_build/series index 7b1293eb..24d94225 100644 --- a/_build/series +++ b/_build/series @@ -1,3 +1,5 @@ 0001-Revert-add-index-to-the-ethernet-alias.patch 0201-enable-spidev.patch 0001-gokrazy-logo.patch +0300-Revert-wifi-cfg80211-support-MAC-address-filtering-in-station-dump.patch +0301-nl80211-do-not-set-NLA_F_NESTED-on-station-info-nests.patch diff --git a/vmlinuz b/vmlinuz index d895091c..16af9526 100644 Binary files a/vmlinuz and b/vmlinuz differ