]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
simplify name set code
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 15:45:37 +0000 (17:45 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 15:45:37 +0000 (17:45 +0200)
phy.c

diff --git a/phy.c b/phy.c
index ad7c3317788f04e8bc67033843a1b090fbb70629..518356722743f9d4247b3b0af4bd851c09b6be9a 100644 (file)
--- 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);