diff options
author | Eduardo Abinader <eduardo.abinader@openbossa.org> | 2015-01-27 19:20:56 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-01-28 17:41:07 -0800 |
commit | 478edba6255b0402c33178a83e426ef79784ffee (patch) | |
tree | b52df87a7afa374a7ba08b8f010134a4f268c221 /src | |
parent | 1c081245caf97def1581ab055d33fe2f6f8eff30 (diff) | |
download | android_external_wpa_supplicant_8-478edba6255b0402c33178a83e426ef79784ffee.tar.gz android_external_wpa_supplicant_8-478edba6255b0402c33178a83e426ef79784ffee.tar.bz2 android_external_wpa_supplicant_8-478edba6255b0402c33178a83e426ef79784ffee.zip |
nl80211: Register eloop after hs20 action frame
Even when hs20 action frame is unable to be registered,
for whatever reason, it should be possible to register
event handle for received driver messages. This patch also
avoids a segmentation fault, when p2p and hs20 were enabled
and GO NEG was unable to create p2p iface, the destroy eloop
was crashing by reading an invalid handle.
CRs-fixed: 787173
Git-commit: 3ee18569f5d181ba01981d9bcbc60243f7ac1c7a
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
Change-Id: I7c3c95e92a9aee44ee973791bdb3b17112d68bd4
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/driver_nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 3cc99e94..5f307765 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4709,7 +4709,7 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss) #ifdef CONFIG_HS20 /* WNM-Notification */ if (nl80211_register_action_frame(bss, (u8 *) "\x0a\x1a", 2) < 0) - return -1; + ret = -1; #endif /* CONFIG_HS20 */ nl80211_mgmt_handle_register_eloop(bss); |