q_limit_low_old = local->aql_txq_limit_low[ac];
        q_limit_high_old = local->aql_txq_limit_high[ac];
 
-       wiphy_lock(local->hw.wiphy);
+       guard(wiphy)(local->hw.wiphy);
+
        local->aql_txq_limit_low[ac] = q_limit_low;
        local->aql_txq_limit_high[ac] = q_limit_high;
 
                        sta->airtime[ac].aql_limit_high = q_limit_high;
                }
        }
-       wiphy_unlock(local->hw.wiphy);
 
        return count;
 }
 
                                   struct netlink_ext_ack *extack)
 {
        struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy);
-       int ret;
 
        if (rp->rx_mini_pending != 0 || rp->rx_jumbo_pending != 0)
                return -EINVAL;
 
-       wiphy_lock(local->hw.wiphy);
-       ret = drv_set_ringparam(local, rp->tx_pending, rp->rx_pending);
-       wiphy_unlock(local->hw.wiphy);
+       guard(wiphy)(local->hw.wiphy);
 
-       return ret;
+       return drv_set_ringparam(local, rp->tx_pending, rp->rx_pending);
 }
 
 static void ieee80211_get_ringparam(struct net_device *dev,
 
        memset(rp, 0, sizeof(*rp));
 
-       wiphy_lock(local->hw.wiphy);
+       guard(wiphy)(local->hw.wiphy);
+
        drv_get_ringparam(local, &rp->tx_pending, &rp->tx_max_pending,
                          &rp->rx_pending, &rp->rx_max_pending);
-       wiphy_unlock(local->hw.wiphy);
 }
 
 static const char ieee80211_gstrings_sta_stats[][ETH_GSTRING_LEN] = {
         * network device.
         */
 
-       wiphy_lock(local->hw.wiphy);
+       guard(wiphy)(local->hw.wiphy);
 
        if (sdata->vif.type == NL80211_IFTYPE_STATION) {
                sta = sta_info_get_bss(sdata, sdata->deflink.u.mgd.bssid);
        else
                data[i++] = -1LL;
 
-       if (WARN_ON(i != STA_STATS_LEN)) {
-               wiphy_unlock(local->hw.wiphy);
+       if (WARN_ON(i != STA_STATS_LEN))
                return;
-       }
 
        drv_get_et_stats(sdata, stats, &(data[STA_STATS_LEN]));
-       wiphy_unlock(local->hw.wiphy);
 }
 
 static void ieee80211_get_strings(struct net_device *dev, u32 sset, u8 *data)
 
 {
        struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
        struct ieee80211_local *local = sdata->local;
-       int ret;
 
        /*
         * This happens during unregistration if there's a bond device
        if (!dev->ieee80211_ptr->registered)
                return 0;
 
-       wiphy_lock(local->hw.wiphy);
-       ret = _ieee80211_change_mac(sdata, addr);
-       wiphy_unlock(local->hw.wiphy);
+       guard(wiphy)(local->hw.wiphy);
 
-       return ret;
+       return _ieee80211_change_mac(sdata, addr);
 }
 
 static inline int identical_mac_addr_allowed(int type1, int type2)
        if (!is_valid_ether_addr(dev->dev_addr))
                return -EADDRNOTAVAIL;
 
-       wiphy_lock(sdata->local->hw.wiphy);
+       guard(wiphy)(sdata->local->hw.wiphy);
+
        err = ieee80211_check_concurrent_iface(sdata, sdata->vif.type);
        if (err)
-               goto out;
+               return err;
 
-       err = ieee80211_do_open(&sdata->wdev, true);
-out:
-       wiphy_unlock(sdata->local->hw.wiphy);
-
-       return err;
+       return ieee80211_do_open(&sdata->wdev, true);
 }
 
 static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, bool going_down)
                ieee80211_stop_mbssid(sdata);
        }
 
-       wiphy_lock(sdata->local->hw.wiphy);
+       guard(wiphy)(sdata->local->hw.wiphy);
+
        wiphy_work_cancel(sdata->local->hw.wiphy, &sdata->activate_links_work);
 
        ieee80211_do_stop(sdata, true);
-       wiphy_unlock(sdata->local->hw.wiphy);
 
        return 0;
 }
         */
        cfg80211_shutdown_all_interfaces(local->hw.wiphy);
 
-       wiphy_lock(local->hw.wiphy);
+       guard(wiphy)(local->hw.wiphy);
 
        WARN(local->open_count, "%s: open count remains %d\n",
             wiphy_name(local->hw.wiphy), local->open_count);
                if (!netdev)
                        kfree(sdata);
        }
-       wiphy_unlock(local->hw.wiphy);
 }
 
 static int netdev_notify(struct notifier_block *nb,