mwifiex: uap: process remain on channel expired event
authorXinming Hu <huxm@marvell.com>
Fri, 26 May 2017 06:57:13 +0000 (06:57 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Jun 2017 09:50:58 +0000 (12:50 +0300)
AP interface need process remain-on-channel firmware event and notify
cfg80211, this will be used in the listen-stage of p2p find procedure.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/uap_event.c

index e10b2a52e78fe7c04b24a62d63af1e6b7bcec682..e8c8728db15aa37cf62a63abef0264edb3894ba1 100644 (file)
@@ -312,6 +312,17 @@ int mwifiex_process_uap_event(struct mwifiex_private *priv)
                                            adapter->event_skb->len -
                                            sizeof(eventcause));
                break;
+
+       case EVENT_REMAIN_ON_CHAN_EXPIRED:
+               mwifiex_dbg(adapter, EVENT,
+                           "event: uap: Remain on channel expired\n");
+               cfg80211_remain_on_channel_expired(&priv->wdev,
+                                                  priv->roc_cfg.cookie,
+                                                  &priv->roc_cfg.chan,
+                                                  GFP_ATOMIC);
+               memset(&priv->roc_cfg, 0x00, sizeof(struct mwifiex_roc_cfg));
+               break;
+
        default:
                mwifiex_dbg(adapter, EVENT,
                            "event: unknown event id: %#x\n", eventcause);