Skip to content

Commit

Permalink
hostapd: update to 20120428, fixes some radius issues and wds ap mac …
Browse files Browse the repository at this point in the history
…address issues

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31515 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
nbd committed Apr 29, 2012
1 parent b037731 commit f730e82
Show file tree
Hide file tree
Showing 19 changed files with 94 additions and 83 deletions.
6 changes: 3 additions & 3 deletions package/hostapd/Makefile
Expand Up @@ -8,16 +8,16 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=hostapd
PKG_VERSION:=20120326
PKG_VERSION:=20120428
PKG_RELEASE:=1
PKG_REV:=f4329aa2d08192640532b712936f5221580e9f8c
PKG_REV:=1f0cc27eb98f7d1af9c64d0752238184cbdb9a24

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=git://w1.fi/srv/git/hostap.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_PROTO:=git
PKG_MIRROR_MD5SUM:=2650d83c1d4649a5df9fe265f8a5775f
PKG_MIRROR_MD5SUM:=2732dbca58b0aaaebdad69e13588d058

PKG_BUILD_DEPENDS:= \
PACKAGE_kmod-madwifi:madwifi \
Expand Down
10 changes: 5 additions & 5 deletions package/hostapd/patches/100-pending_work.patch
Expand Up @@ -58,7 +58,7 @@
"STA " MACSTR " (aid %u)",
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -2588,10 +2588,10 @@ static int wpa_driver_nl80211_capa(struc
@@ -2601,10 +2601,10 @@ static int wpa_driver_nl80211_capa(struc
drv->data_tx_status = info.data_tx_status;

/*
Expand All @@ -72,7 +72,7 @@

if (drv->device_ap_sme && drv->use_monitor) {
/*
@@ -6267,8 +6267,8 @@ static int wpa_driver_nl80211_hapd_send_
@@ -6286,8 +6286,8 @@ static int wpa_driver_nl80211_hapd_send_
pos = (u8 *) (hdr + 1);

if (qos) {
Expand All @@ -83,7 +83,7 @@
pos[1] = 0;
pos += 2;
}
@@ -7533,6 +7533,10 @@ static int i802_set_wds_sta(void *priv,
@@ -7564,6 +7564,10 @@ static int i802_set_wds_sta(void *priv,
linux_set_iface_flags(drv->global->ioctl_sock, name, 1);
return i802_set_sta_vlan(priv, addr, name, 0);
} else {
Expand All @@ -94,7 +94,7 @@
i802_set_sta_vlan(priv, addr, bss->ifname, 0);
return wpa_driver_nl80211_if_remove(priv, WPA_IF_AP_VLAN,
name);
@@ -7900,7 +7904,12 @@ static int wpa_driver_nl80211_if_remove(
@@ -7931,7 +7935,12 @@ static int wpa_driver_nl80211_if_remove(
if (ifindex <= 0)
return -1;

Expand All @@ -107,7 +107,7 @@
if (bss->added_if_into_bridge) {
if (linux_br_del_if(drv->global->ioctl_sock, bss->brname,
bss->ifname) < 0)
@@ -7914,13 +7923,6 @@ static int wpa_driver_nl80211_if_remove(
@@ -7945,13 +7954,6 @@ static int wpa_driver_nl80211_if_remove(
"bridge %s: %s",
bss->brname, strerror(errno));
}
Expand Down
8 changes: 4 additions & 4 deletions package/hostapd/patches/300-nl80211_multicall_fixes.patch
@@ -1,14 +1,14 @@
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -2918,6 +2918,7 @@ static void * wpa_driver_nl80211_init(vo
@@ -2931,6 +2931,7 @@ static void * wpa_driver_nl80211_init(vo
drv->monitor_sock = -1;
drv->eapol_tx_sock = -1;
drv->ap_scan_as_station = NL80211_IFTYPE_UNSPECIFIED;
+ drv->nlmode = NL80211_IFTYPE_STATION;

if (wpa_driver_nl80211_init_nl(drv)) {
os_free(drv);
@@ -3232,17 +3233,12 @@ static void wpa_driver_nl80211_send_rfki
@@ -3245,17 +3246,12 @@ static void wpa_driver_nl80211_send_rfki
wpa_supplicant_event(timeout_ctx, EVENT_INTERFACE_DISABLED, NULL);
}

Expand All @@ -28,7 +28,7 @@
/*
* Make sure the interface starts up in station mode unless this is a
* dynamically added interface (e.g., P2P) that was already configured
@@ -3261,7 +3257,7 @@ wpa_driver_nl80211_finish_drv_init(struc
@@ -3274,7 +3270,7 @@ wpa_driver_nl80211_finish_drv_init(struc
"interface '%s' due to rfkill",
bss->ifname);
drv->if_disabled = 1;
Expand All @@ -37,7 +37,7 @@
} else {
wpa_printf(MSG_ERROR, "nl80211: Could not set "
"interface '%s' UP", bss->ifname);
@@ -3271,7 +3267,19 @@ wpa_driver_nl80211_finish_drv_init(struc
@@ -3284,7 +3280,19 @@ wpa_driver_nl80211_finish_drv_init(struc

netlink_send_oper_ifla(drv->global->netlink, drv->ifindex,
1, IF_OPER_DORMANT);
Expand Down
8 changes: 4 additions & 4 deletions package/hostapd/patches/310-multicall_bridge_fix.patch
@@ -1,6 +1,6 @@
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -886,6 +886,10 @@ static void wpa_driver_nl80211_event_rtm
@@ -887,6 +887,10 @@ static void wpa_driver_nl80211_event_rtm
return;
}

Expand All @@ -11,7 +11,7 @@
wpa_printf(MSG_DEBUG, "RTM_NEWLINK: operstate=%d ifi_flags=0x%x "
"(%s%s%s%s)",
drv->operstate, ifi->ifi_flags,
@@ -993,6 +997,10 @@ static void wpa_driver_nl80211_event_rtm
@@ -994,6 +998,10 @@ static void wpa_driver_nl80211_event_rtm
attrlen = len;
attr = (struct rtattr *) buf;

Expand All @@ -22,7 +22,7 @@
rta_len = RTA_ALIGN(sizeof(struct rtattr));
while (RTA_OK(attr, attrlen)) {
if (attr->rta_type == IFLA_IFNAME) {
@@ -2920,6 +2928,11 @@ static void * wpa_driver_nl80211_init(vo
@@ -2933,6 +2941,11 @@ static void * wpa_driver_nl80211_init(vo
drv->ap_scan_as_station = NL80211_IFTYPE_UNSPECIFIED;
drv->nlmode = NL80211_IFTYPE_STATION;

Expand All @@ -34,7 +34,7 @@
if (wpa_driver_nl80211_init_nl(drv)) {
os_free(drv);
return NULL;
@@ -7654,8 +7667,6 @@ static void *i802_init(struct hostapd_da
@@ -7685,8 +7698,6 @@ static void *i802_init(struct hostapd_da
br_ifindex = 0;
}

Expand Down
6 changes: 3 additions & 3 deletions package/hostapd/patches/400-scan_wait.patch
Expand Up @@ -10,7 +10,7 @@
/* hostapd.c */
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -851,6 +851,9 @@ int hostapd_setup_interface_complete(str
@@ -852,6 +852,9 @@ int hostapd_setup_interface_complete(str
wpa_printf(MSG_DEBUG, "%s: Setup of interface done.",
iface->bss[0]->conf->iface);

Expand Down Expand Up @@ -117,7 +117,7 @@
if (log_file)
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -1941,6 +1941,8 @@ static int hostapd_config_fill(struct ho
@@ -1947,6 +1947,8 @@ static int hostapd_config_fill(struct ho
}
#endif /* CONFIG_IEEE80211W */
#ifdef CONFIG_IEEE80211N
Expand All @@ -138,7 +138,7 @@
int require_ht;
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -451,7 +451,7 @@ static int ieee80211n_check_40mhz(struct
@@ -491,7 +491,7 @@ static int ieee80211n_check_40mhz(struct
{
struct wpa_driver_scan_params params;

Expand Down
12 changes: 6 additions & 6 deletions package/hostapd/patches/410-multicall.patch
Expand Up @@ -104,7 +104,7 @@
NEED_AES_WRAP=y
OBJS += ../src/ap/wpa_auth.o
OBJS += ../src/ap/wpa_auth_ie.o
@@ -1415,6 +1430,12 @@ wpa_priv: $(BCHECK) $(OBJS_priv)
@@ -1419,6 +1434,12 @@ wpa_priv: $(BCHECK) $(OBJS_priv)

$(OBJS_c) $(OBJS_t) $(OBJS_t2) $(OBJS) $(BCHECK) $(EXTRA_progs): .config

Expand All @@ -117,7 +117,7 @@
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
$(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
@$(E) " LD " $@
@@ -1481,6 +1502,12 @@ eap_ikev2.so: ../src/eap_peer/eap_ikev2.
@@ -1485,6 +1506,12 @@ eap_ikev2.so: ../src/eap_peer/eap_ikev2.
%@.service: %.service.arg.in
sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@

Expand All @@ -132,7 +132,7 @@
wpa_cli.exe: wpa_cli
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -3541,8 +3541,8 @@ union wpa_event_data {
@@ -3572,8 +3572,8 @@ union wpa_event_data {
* Driver wrapper code should call this function whenever an event is received
* from the driver.
*/
Expand All @@ -145,7 +145,7 @@
/*
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -459,8 +459,8 @@ static void hostapd_event_eapol_rx(struc
@@ -467,8 +467,8 @@ static void hostapd_event_eapol_rx(struc
}


Expand Down Expand Up @@ -192,7 +192,7 @@
u16 reason_code = 0;
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2680,6 +2680,9 @@ static void wpa_supplicant_deinit_iface(
@@ -2704,6 +2704,9 @@ static void wpa_supplicant_deinit_iface(
}
}

Expand All @@ -202,7 +202,7 @@

/**
* wpa_supplicant_add_iface - Add a new network interface
@@ -2871,6 +2874,7 @@ struct wpa_global * wpa_supplicant_init(
@@ -2895,6 +2898,7 @@ struct wpa_global * wpa_supplicant_init(
wpa_msg_register_ifname_cb(wpa_supplicant_msg_ifname_cb);
#endif /* CONFIG_NO_WPA_MSG */

Expand Down
2 changes: 1 addition & 1 deletion package/hostapd/patches/430-rescan_immediately.patch
@@ -1,6 +1,6 @@
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2191,7 +2191,7 @@ static struct wpa_supplicant * wpa_suppl
@@ -2215,7 +2215,7 @@ static struct wpa_supplicant * wpa_suppl
if (wpa_s == NULL)
return NULL;
wpa_s->scan_req = 1;
Expand Down
20 changes: 10 additions & 10 deletions package/hostapd/patches/440-optional_rfkill.patch
@@ -1,6 +1,6 @@
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -211,7 +211,9 @@ struct wpa_driver_nl80211_data {
@@ -212,7 +212,9 @@ struct wpa_driver_nl80211_data {
int if_removed;
int if_disabled;
int ignore_if_down_event;
Expand All @@ -10,7 +10,7 @@
struct wpa_driver_capa capa;
int has_capability;

@@ -2755,7 +2757,7 @@ static int wpa_driver_nl80211_init_nl(st
@@ -2768,7 +2770,7 @@ static int wpa_driver_nl80211_init_nl(st
return 0;
}

Expand All @@ -19,15 +19,15 @@
static void wpa_driver_nl80211_rfkill_blocked(void *ctx)
{
wpa_printf(MSG_DEBUG, "nl80211: RFKILL blocked");
@@ -2778,6 +2780,7 @@ static void wpa_driver_nl80211_rfkill_un
@@ -2791,6 +2793,7 @@ static void wpa_driver_nl80211_rfkill_un
}
/* rtnetlink ifup handler will report interface as enabled */
}
+#endif /* CONFIG_RFKILL */


static void nl80211_get_phy_name(struct wpa_driver_nl80211_data *drv)
@@ -2909,7 +2912,9 @@ static void * wpa_driver_nl80211_init(vo
@@ -2922,7 +2925,9 @@ static void * wpa_driver_nl80211_init(vo
void *global_priv)
{
struct wpa_driver_nl80211_data *drv;
Expand All @@ -37,23 +37,23 @@
struct i802_bss *bss;

if (global_priv == NULL)
@@ -2943,6 +2948,7 @@ static void * wpa_driver_nl80211_init(vo
@@ -2956,6 +2961,7 @@ static void * wpa_driver_nl80211_init(vo

nl80211_get_phy_name(drv);

+#ifdef CONFIG_RFKILL
rcfg = os_zalloc(sizeof(*rcfg));
if (rcfg == NULL)
goto failed;
@@ -2955,6 +2961,7 @@ static void * wpa_driver_nl80211_init(vo
@@ -2968,6 +2974,7 @@ static void * wpa_driver_nl80211_init(vo
wpa_printf(MSG_DEBUG, "nl80211: RFKILL status not available");
os_free(rcfg);
}
+#endif /* CONFIG_RFKILL */

if (wpa_driver_nl80211_finish_drv_init(drv))
goto failed;
@@ -3241,10 +3248,12 @@ static void nl80211_mgmt_unsubscribe(str
@@ -3254,10 +3261,12 @@ static void nl80211_mgmt_unsubscribe(str
}


Expand All @@ -66,7 +66,7 @@

static int
wpa_driver_nl80211_finish_drv_init_sta(struct wpa_driver_nl80211_data *drv,
@@ -3265,13 +3274,16 @@ wpa_driver_nl80211_finish_drv_init_sta(s
@@ -3278,13 +3287,16 @@ wpa_driver_nl80211_finish_drv_init_sta(s
}

if (linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1)) {
Expand All @@ -84,7 +84,7 @@
wpa_printf(MSG_ERROR, "nl80211: Could not set "
"interface '%s' UP", bss->ifname);
return -1;
@@ -3302,8 +3314,10 @@ wpa_driver_nl80211_finish_drv_init(struc
@@ -3315,8 +3327,10 @@ wpa_driver_nl80211_finish_drv_init(struc
return -1;

if (send_rfkill_event) {
Expand All @@ -95,7 +95,7 @@
}

return 0;
@@ -3389,7 +3403,9 @@ static void wpa_driver_nl80211_deinit(vo
@@ -3403,7 +3417,9 @@ static void wpa_driver_nl80211_deinit(vo

netlink_send_oper_ifla(drv->global->netlink, drv->ifindex, 0,
IF_OPER_UP);
Expand Down
2 changes: 1 addition & 1 deletion package/hostapd/patches/450-reload_freq_change.patch
@@ -1,6 +1,6 @@
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -136,6 +136,10 @@ int hostapd_reload_config(struct hostapd
@@ -137,6 +137,10 @@ int hostapd_reload_config(struct hostapd
oldconf = hapd->iconf;
iface->conf = newconf;

Expand Down
12 changes: 6 additions & 6 deletions package/hostapd/patches/451-nl80211_del_beacon_bss.patch
@@ -1,6 +1,6 @@
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -3324,16 +3324,18 @@ wpa_driver_nl80211_finish_drv_init(struc
@@ -3337,16 +3337,18 @@ wpa_driver_nl80211_finish_drv_init(struc
}


Expand All @@ -21,7 +21,7 @@

return send_and_recv_msgs(drv, msg, NULL, NULL);
nla_put_failure:
@@ -3341,6 +3343,21 @@ static int wpa_driver_nl80211_del_beacon
@@ -3354,6 +3356,21 @@ static int wpa_driver_nl80211_del_beacon
return -ENOBUFS;
}

Expand All @@ -43,21 +43,21 @@

/**
* wpa_driver_nl80211_deinit - Deinitialize nl80211 driver interface
@@ -9054,4 +9071,5 @@ const struct wpa_driver_ops wpa_driver_n
@@ -9099,4 +9116,5 @@ const struct wpa_driver_ops wpa_driver_n
.send_tdls_mgmt = nl80211_send_tdls_mgmt,
.tdls_oper = nl80211_tdls_oper,
#endif /* CONFIG_TDLS */
+ .stop_ap = wpa_driver_nl80211_stop_ap,
};
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -2002,6 +2002,9 @@ struct wpa_driver_ops {
@@ -2007,6 +2007,9 @@ struct wpa_driver_ops {
*/
int (*deinit_ap)(void *priv);
int (*probe_req_report)(void *priv, int report);

+
+ int (*stop_ap)(void *priv);
+
/**
* suspend - Notification on system suspend/hibernate event
* deinit_ap - Deinitialize AP mode
* @priv: Private driver interface data

0 comments on commit f730e82

Please sign in to comment.