From: Johannes Berg Date: Tue, 16 Sep 2008 15:45:37 +0000 (+0200) Subject: simplify name set code X-Git-Tag: v0.9~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6f1378dea5a11749308312fb8b8e510a8028367;p=thirdparty%2Fiw.git simplify name set code --- diff --git a/phy.c b/phy.c index ad7c331..5183567 100644 --- a/phy.c +++ b/phy.c @@ -29,11 +29,7 @@ static int handle_name(struct nl80211_state *state, if (nl_send_auto_complete(state->nl_handle, msg) < 0) goto out; - err = nl_recvmsgs(state->nl_handle, cb); - - if (err < 0) - goto out; - err = 0; + err = nl_wait_for_ack(state->nl_handle); out: nl_cb_put(cb);