Message ID | 94eb2c193506846ae70546df41f6@google.com |
---|---|
State | Accepted |
Headers | show |
On Tue, Jan 24, 2017 at 11:12:54PM +0000, dimitrysh@google.com wrote: > Subject: [PATCH] wpa_supplicant: Fix global control interface for STA_FIRST > / > STA-NEXT Thanks, applied with some fixes: > diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c > @@ -10188,6 +10188,10 @@ static char * > wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global, > "P2P_CANCEL", > "P2P_PRESENCE_REQ", > "P2P_EXT_LISTEN", > +#ifdef CONFIG_AP > + "STA-FIRST", > + "STA-LAST", > +#endif There is no STA-LAST, so I changed this to STA-NEXT and moved it to the following array of prefixes to be able to match with the argument. In addition, I added the STA command there since it should continue to have similar behavior to the other STA* commands.
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index aa1211c2a..ce10226d3 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -10188,6 +10188,10 @@ static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global, "P2P_CANCEL", "P2P_PRESENCE_REQ", "P2P_EXT_LISTEN", +#ifdef CONFIG_AP + "STA-FIRST", + "STA-LAST", +#endif NULL };