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

Commit ec3fbb3f authored by Arif Hussain's avatar Arif Hussain Committed by Madan Mohan Koyyalamudi
Browse files

wlan: Ignore wlan_hdd_linux_reg_notifier on (un)loading

Ignore the wlan_hdd_linux_reg_notifier call from the
reg-module if isLoadUnloadInProgress is set to TRUE.
processing wlan_hdd_linux_reg_notifier while unloading
the driver may lead to crash.

Change-Id: I6f4e0bf510b7e3a89b2dd1801d90d7cbb53f651e
CRs-Fixed: 550640
parent 79dbe4cb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2857,6 +2857,12 @@ void wlan_hdd_linux_reg_notifier(struct wiphy *wiphy,
    wiphy_dbg(wiphy, "info: cfg80211 reg_notifier callback for country"
              " %c%c\n", request->alpha2[0], request->alpha2[1]);

    if (pHddCtx->isLoadUnloadInProgress)
    {
        wiphy_dbg(wiphy, "info: %s: Unloading/Loading in Progress. Ignore!!!",
                  __func__);
        return;
    }
    /* first check if this callback is in response to the driver callback */

    if (VOS_TRUE == kernel_reg_request_made) {