projects
/
oweals
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hostapd: backport fix for CVE-2015-1863, refresh patches
[oweals/openwrt.git]
/
package
/
network
/
services
/
hostapd
/
patches
/
370-ap_sta_support.patch
diff --git
a/package/network/services/hostapd/patches/370-ap_sta_support.patch
b/package/network/services/hostapd/patches/370-ap_sta_support.patch
index 92a5fddad74898b6021f365af149aa2cac255a69..ea235e67780366b28dd8e811367d7cb45f2397de 100644
(file)
--- a/
package/network/services/hostapd/patches/370-ap_sta_support.patch
+++ b/
package/network/services/hostapd/patches/370-ap_sta_support.patch
@@
-84,8
+84,8
@@
+ }
+
+ 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
ieee80211n=%d
",
-+ channel, sec_chan, hw_mode
, !!bss->ht_capab
) < 0)
++ if (asprintf(&cmd, "UPDATE channel=%d sec_chan=%d hw_mode=%d",
++ channel, sec_chan, hw_mode) < 0)
+ return -1;
+
+ ret = wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL);
+ return -1;
+
+ ret = wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL);
@@
-157,7
+157,7
@@
#include "drivers/driver.h"
#include "wpa_supplicant_i.h"
#include "config.h"
#include "drivers/driver.h"
#include "wpa_supplicant_i.h"
#include "config.h"
-@@ -277,6 +278,10 @@ static void calculate_update_time(const
+@@ -277,6 +278,10 @@ static void calculate_update_time(const
static void wpa_bss_copy_res(struct wpa_bss *dst, struct wpa_scan_res *src,
struct os_reltime *fetch_time)
{
static void wpa_bss_copy_res(struct wpa_bss *dst, struct wpa_scan_res *src,
struct os_reltime *fetch_time)
{