mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 03:26:51 +00:00
hostapd: remove unused asprintf parameter
r45270 removed ieee80211n=%d from the format string but didn't remove the parameter itself. Though this probably doesn't cause any harm, it's quite confusing and unneeded. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 45351
This commit is contained in:
parent
7872f4e1dc
commit
2b95d21fdb
@ -85,7 +85,7 @@
|
|||||||
+
|
+
|
||||||
+ hw_mode = ieee80211_freq_to_chan(bss->freq, &channel);
|
+ hw_mode = ieee80211_freq_to_chan(bss->freq, &channel);
|
||||||
+ if (asprintf(&cmd, "UPDATE channel=%d sec_chan=%d hw_mode=%d",
|
+ 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;
|
+ return -1;
|
||||||
+
|
+
|
||||||
+ ret = wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL);
|
+ ret = wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user