]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: Change socket configuration to avoid buffer allocation error
authorTribush, Gil <gil.tribush@intel.com>
Wed, 18 May 2016 11:22:10 +0000 (11:22 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 31 May 2016 09:38:14 +0000 (11:38 +0200)
commit7687d5963b5dcc1bb68a1ed8fe99d0a52b65d8b1
treea45e42f2465b119b409ba4676105c172b716098a
parentf45d4583f14acf115aa248af0caee80a3dfa98d3
iw: Change socket configuration to avoid buffer allocation error

Move nl_socket_set_buffer_size() to be called after genl_connect(),
otherwise nl_socket_set_buffer_size() always returns an NLE_BAD_SOCK
error because sk->s_fd is equal to -1 at that stage.

Signed-off-by: Gil Treibush <gil.tribush@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
iw.c