mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 07:22:54 +00:00
a35f243090
Support for building wpa_supplicant/hostapd against wolfssl has been
added upstream recently, add build option to allow users using it.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from 69f544937f
)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
24 lines
703 B
Diff
24 lines
703 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Thu, 3 May 2018 12:34:31 +0200
|
|
Subject: [PATCH] mesh: fix crash with CONFIG_TAXONOMY enabled
|
|
|
|
wpa_s->ifmsh needs to be allocated using hostapd_alloc_iface() instead
|
|
of a direct call to os_zalloc, otherwise the linked list for station
|
|
taxonomy items remains uninitialized, leading to a crash on the first
|
|
attempt to traverse that list
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/wpa_supplicant/mesh.c
|
|
+++ b/wpa_supplicant/mesh.c
|
|
@@ -214,7 +214,7 @@ static int wpa_supplicant_mesh_init(stru
|
|
return 0;
|
|
}
|
|
|
|
- wpa_s->ifmsh = ifmsh = os_zalloc(sizeof(*wpa_s->ifmsh));
|
|
+ wpa_s->ifmsh = ifmsh = hostapd_alloc_iface();
|
|
if (!ifmsh)
|
|
return -ENOMEM;
|
|
|