hostapd: remove unused asprintf parameter
[openwrt/svn-archive/archive.git] / package / network / services / hostapd / patches / 370-ap_sta_support.patch
index cf13a96f0c180ba4e6cc23cafdbaa8a99095c2a8..993caf414985f495e6e72270ef97feaa1f4d2aff 100644 (file)
@@ -85,7 +85,7 @@
 +
 +      hw_mode = ieee80211_freq_to_chan(bss->freq, &channel);
 +      if (asprintf(&cmd, "UPDATE channel=%d sec_chan=%d hw_mode=%d",
-+                   channel, sec_chan, hw_mode, !!bss->ht_capab) < 0)
++                   channel, sec_chan, hw_mode) < 0)
 +              return -1;
 +
 +      ret = wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL);