With the TCP WoWLAN, larger messages may be needed.
To simplify the code, always use larger messages.
{
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;
return -ENOMEM;
}
+ nl_socket_set_buffer_size(state->nl_sock, 8192, 8192);
+
if (genl_connect(state->nl_sock)) {
fprintf(stderr, "Failed to connect to generic netlink.\n");
err = -ENOLINK;