From: Johannes Berg Date: Thu, 28 Aug 2025 13:06:33 +0000 (+0200) Subject: iw: don't set stupid socket buffer size X-Git-Tag: v6.17~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aef3798128a17a319909e3e34b34d44b7c237a58;p=thirdparty%2Fiw.git iw: don't set stupid socket buffer size Setting the socket buffer size to 8KiB is completely stupid. It seems I originally though it'd be smaller by default for some reason, the real issue there was something else but we never got rid of this setting. Remove it. Reviewed-by: Benjamin Berg Link: https://patch.msgid.link/20250828130632.1170501-2-johannes@sipsolutions.net Signed-off-by: Johannes Berg --- diff --git a/iw.c b/iw.c index c99edb1..6a4a9ad 100644 --- a/iw.c +++ b/iw.c @@ -35,12 +35,6 @@ static inline void nl_socket_free(struct nl_sock *h) { nl_handle_destroy(h); } - -static inline int nl_socket_set_buffer_size(struct nl_sock *sk, - int rxbuf, int txbuf) -{ - return nl_set_buffer_size(sk, rxbuf, txbuf); -} #endif /* CONFIG_LIBNL20 && CONFIG_LIBNL30 */ int iw_debug = 0; @@ -61,8 +55,6 @@ static int nl80211_init(struct nl80211_state *state) goto out_handle_destroy; } - nl_socket_set_buffer_size(state->nl_sock, 8192, 8192); - /* try to set NETLINK_EXT_ACK to 1, ignoring errors */ err = 1; setsockopt(nl_socket_get_fd(state->nl_sock), SOL_NETLINK,