Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2225e3bc authored by Arun Kumar Khandavalli's avatar Arun Kumar Khandavalli
Browse files

wlan: register frames on the iff up

Frames for the p2p are registered previously on the
driver load, with the new changes to create session
on the interface up this registration will not happen
resulting in dropping of few action frames.

Move management frame registration to interface up.

Change-Id: I39c0035bba3e2fe9ab316d752b48acde13faacb5
CRs-Fixed: 2746365
parent b1ed6440
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5688,6 +5688,10 @@ VOS_STATUS hdd_init_ap_mode( hdd_adapter_t *pAdapter, bool re_init)
                                ini_cfg->apEndChannelNum,
                                ini_cfg->apOperatingBand);
    }
   /* Action frame registered in one adapter which will
    * applicable to all interfaces
    */
    wlan_hdd_cfg80211_register_frames(pAdapter);

    return status;

+13 −7
Original line number Diff line number Diff line
@@ -8085,6 +8085,7 @@ int __hdd_open(struct net_device *dev)
      return -ENODEV;
   }
   if (test_bit(DEVICE_IFACE_OPENED, &pAdapter->event_flags)) {
          hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: session already opened for the adapter",
                 __func__);
@@ -8192,6 +8193,11 @@ int __hdd_mon_open (struct net_device *dev)
   set_bit(DEVICE_IFACE_OPENED, &pAdapter->event_flags);
   /* Action frame registered in one adapter which will
    * applicable to all interfaces
    */
    wlan_hdd_cfg80211_register_frames(pAdapter);
   return 0;
}
@@ -9356,6 +9362,10 @@ VOS_STATUS hdd_init_station_mode( hdd_adapter_t *pAdapter )
   }
   set_bit(WMM_INIT_DONE, &pAdapter->event_flags);
   /* Action frame registered in one adapter which will
    * applicable to all interfaces
    */
    wlan_hdd_cfg80211_register_frames(pAdapter);
   return VOS_STATUS_SUCCESS;
@@ -10396,6 +10406,7 @@ VOS_STATUS hdd_stop_adapter( hdd_context_t *pHddCtx, hdd_adapter_t *pAdapter,
   ENTER();
   wlan_hdd_cfg80211_deregister_frames(pAdapter);
   pScanInfo =  &pHddCtx->scan_info;
   switch(pAdapter->device_mode)
   {
@@ -14337,11 +14348,6 @@ int hdd_wlan_startup(struct device *dev )
   hdd_register_mcast_bcast_filter(pHddCtx);
   /* Action frame registered in one adapter which will
    * applicable to all interfaces
    */
   wlan_hdd_cfg80211_register_frames(pAdapter);
   mutex_init(&pHddCtx->sap_lock);
   mutex_init(&pHddCtx->roc_lock);