From: Johannes Berg Date: Mon, 20 Apr 2009 22:22:12 +0000 (+0200) Subject: fix bug introduced by previous commit X-Git-Tag: v0.9.13~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d28ce25d74edb51b640eae322990e4617b97ee0;p=thirdparty%2Fiw.git fix bug introduced by previous commit --- diff --git a/interface.c b/interface.c index 82802c3..3665c5a 100644 --- a/interface.c +++ b/interface.c @@ -173,8 +173,7 @@ static int handle_interface_add(struct nl80211_state *state, return 1; NLA_PUT_STRING(msg, NL80211_ATTR_IFNAME, name); - if (tpset) - NLA_PUT_U32(msg, NL80211_ATTR_IFTYPE, type); + NLA_PUT_U32(msg, NL80211_ATTR_IFTYPE, type); if (mesh_id) NLA_PUT(msg, NL80211_ATTR_MESH_ID, strlen(mesh_id), mesh_id);