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. Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
This commit is contained in:
parent
3bd3257a0a
commit
3ee18569f5
1 changed files with 1 additions and 1 deletions
|
@ -4573,7 +4573,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);
|
||||
|
|
Loading…
Reference in a new issue