linux/net/wireless/core.c
<<
>>
Prefs
   1/*
   2 * This is the linux wireless configuration interface.
   3 *
   4 * Copyright 2006-2010          Johannes Berg <johannes@sipsolutions.net>
   5 */
   6
   7#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
   8
   9#include <linux/if.h>
  10#include <linux/module.h>
  11#include <linux/err.h>
  12#include <linux/list.h>
  13#include <linux/slab.h>
  14#include <linux/nl80211.h>
  15#include <linux/debugfs.h>
  16#include <linux/notifier.h>
  17#include <linux/device.h>
  18#include <linux/etherdevice.h>
  19#include <linux/rtnetlink.h>
  20#include <linux/sched.h>
  21#include <net/genetlink.h>
  22#include <net/cfg80211.h>
  23#include "nl80211.h"
  24#include "core.h"
  25#include "sysfs.h"
  26#include "debugfs.h"
  27#include "wext-compat.h"
  28#include "ethtool.h"
  29
  30/* name for sysfs, %d is appended */
  31#define PHY_NAME "phy"
  32
  33MODULE_AUTHOR("Johannes Berg");
  34MODULE_LICENSE("GPL");
  35MODULE_DESCRIPTION("wireless configuration support");
  36
  37/* RCU-protected (and cfg80211_mutex for writers) */
  38LIST_HEAD(cfg80211_rdev_list);
  39int cfg80211_rdev_list_generation;
  40
  41DEFINE_MUTEX(cfg80211_mutex);
  42
  43/* for debugfs */
  44static struct dentry *ieee80211_debugfs_dir;
  45
  46/* for the cleanup, scan and event works */
  47struct workqueue_struct *cfg80211_wq;
  48
  49static bool cfg80211_disable_40mhz_24ghz;
  50module_param(cfg80211_disable_40mhz_24ghz, bool, 0644);
  51MODULE_PARM_DESC(cfg80211_disable_40mhz_24ghz,
  52                 "Disable 40MHz support in the 2.4GHz band");
  53
  54/* requires cfg80211_mutex to be held! */
  55struct cfg80211_registered_device *cfg80211_rdev_by_wiphy_idx(int wiphy_idx)
  56{
  57        struct cfg80211_registered_device *result = NULL, *rdev;
  58
  59        if (!wiphy_idx_valid(wiphy_idx))
  60                return NULL;
  61
  62        assert_cfg80211_lock();
  63
  64        list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
  65                if (rdev->wiphy_idx == wiphy_idx) {
  66                        result = rdev;
  67                        break;
  68                }
  69        }
  70
  71        return result;
  72}
  73
  74int get_wiphy_idx(struct wiphy *wiphy)
  75{
  76        struct cfg80211_registered_device *rdev;
  77        if (!wiphy)
  78                return WIPHY_IDX_STALE;
  79        rdev = wiphy_to_dev(wiphy);
  80        return rdev->wiphy_idx;
  81}
  82
  83/* requires cfg80211_rdev_mutex to be held! */
  84struct wiphy *wiphy_idx_to_wiphy(int wiphy_idx)
  85{
  86        struct cfg80211_registered_device *rdev;
  87
  88        if (!wiphy_idx_valid(wiphy_idx))
  89                return NULL;
  90
  91        assert_cfg80211_lock();
  92
  93        rdev = cfg80211_rdev_by_wiphy_idx(wiphy_idx);
  94        if (!rdev)
  95                return NULL;
  96        return &rdev->wiphy;
  97}
  98
  99struct cfg80211_registered_device *
 100cfg80211_get_dev_from_ifindex(struct net *net, int ifindex)
 101{
 102        struct cfg80211_registered_device *rdev = ERR_PTR(-ENODEV);
 103        struct net_device *dev;
 104
 105        mutex_lock(&cfg80211_mutex);
 106        dev = dev_get_by_index(net, ifindex);
 107        if (!dev)
 108                goto out;
 109        if (dev->ieee80211_ptr) {
 110                rdev = wiphy_to_dev(dev->ieee80211_ptr->wiphy);
 111                mutex_lock(&rdev->mtx);
 112        } else
 113                rdev = ERR_PTR(-ENODEV);
 114        dev_put(dev);
 115 out:
 116        mutex_unlock(&cfg80211_mutex);
 117        return rdev;
 118}
 119
 120/* requires cfg80211_mutex to be held */
 121int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
 122                        char *newname)
 123{
 124        struct cfg80211_registered_device *rdev2;
 125        int wiphy_idx, taken = -1, result, digits;
 126
 127        assert_cfg80211_lock();
 128
 129        /* prohibit calling the thing phy%d when %d is not its number */
 130        sscanf(newname, PHY_NAME "%d%n", &wiphy_idx, &taken);
 131        if (taken == strlen(newname) && wiphy_idx != rdev->wiphy_idx) {
 132                /* count number of places needed to print wiphy_idx */
 133                digits = 1;
 134                while (wiphy_idx /= 10)
 135                        digits++;
 136                /*
 137                 * deny the name if it is phy<idx> where <idx> is printed
 138                 * without leading zeroes. taken == strlen(newname) here
 139                 */
 140                if (taken == strlen(PHY_NAME) + digits)
 141                        return -EINVAL;
 142        }
 143
 144
 145        /* Ignore nop renames */
 146        if (strcmp(newname, dev_name(&rdev->wiphy.dev)) == 0)
 147                return 0;
 148
 149        /* Ensure another device does not already have this name. */
 150        list_for_each_entry(rdev2, &cfg80211_rdev_list, list)
 151                if (strcmp(newname, dev_name(&rdev2->wiphy.dev)) == 0)
 152                        return -EINVAL;
 153
 154        result = device_rename(&rdev->wiphy.dev, newname);
 155        if (result)
 156                return result;
 157
 158        if (rdev->wiphy.debugfsdir &&
 159            !debugfs_rename(rdev->wiphy.debugfsdir->d_parent,
 160                            rdev->wiphy.debugfsdir,
 161                            rdev->wiphy.debugfsdir->d_parent,
 162                            newname))
 163                pr_err("failed to rename debugfs dir to %s!\n", newname);
 164
 165        nl80211_notify_dev_rename(rdev);
 166
 167        return 0;
 168}
 169
 170int cfg80211_switch_netns(struct cfg80211_registered_device *rdev,
 171                          struct net *net)
 172{
 173        struct wireless_dev *wdev;
 174        int err = 0;
 175
 176        if (!(rdev->wiphy.flags & WIPHY_FLAG_NETNS_OK))
 177                return -EOPNOTSUPP;
 178
 179        list_for_each_entry(wdev, &rdev->wdev_list, list) {
 180                if (!wdev->netdev)
 181                        continue;
 182                wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL;
 183                err = dev_change_net_namespace(wdev->netdev, net, "wlan%d");
 184                if (err)
 185                        break;
 186                wdev->netdev->features |= NETIF_F_NETNS_LOCAL;
 187        }
 188
 189        if (err) {
 190                /* failed -- clean up to old netns */
 191                net = wiphy_net(&rdev->wiphy);
 192
 193                list_for_each_entry_continue_reverse(wdev, &rdev->wdev_list,
 194                                                     list) {
 195                        if (!wdev->netdev)
 196                                continue;
 197                        wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL;
 198                        err = dev_change_net_namespace(wdev->netdev, net,
 199                                                        "wlan%d");
 200                        WARN_ON(err);
 201                        wdev->netdev->features |= NETIF_F_NETNS_LOCAL;
 202                }
 203
 204                return err;
 205        }
 206
 207        wiphy_net_set(&rdev->wiphy, net);
 208
 209        err = device_rename(&rdev->wiphy.dev, dev_name(&rdev->wiphy.dev));
 210        WARN_ON(err);
 211
 212        return 0;
 213}
 214
 215static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data)
 216{
 217        struct cfg80211_registered_device *rdev = data;
 218
 219        rdev->ops->rfkill_poll(&rdev->wiphy);
 220}
 221
 222static int cfg80211_rfkill_set_block(void *data, bool blocked)
 223{
 224        struct cfg80211_registered_device *rdev = data;
 225        struct wireless_dev *wdev;
 226
 227        if (!blocked)
 228                return 0;
 229
 230        rtnl_lock();
 231        mutex_lock(&rdev->devlist_mtx);
 232
 233        list_for_each_entry(wdev, &rdev->wdev_list, list) {
 234                if (wdev->netdev) {
 235                        dev_close(wdev->netdev);
 236                        continue;
 237                }
 238                /* otherwise, check iftype */
 239                switch (wdev->iftype) {
 240                case NL80211_IFTYPE_P2P_DEVICE:
 241                        if (!wdev->p2p_started)
 242                                break;
 243                        rdev->ops->stop_p2p_device(&rdev->wiphy, wdev);
 244                        wdev->p2p_started = false;
 245                        rdev->opencount--;
 246                        break;
 247                default:
 248                        break;
 249                }
 250        }
 251
 252        mutex_unlock(&rdev->devlist_mtx);
 253        rtnl_unlock();
 254
 255        return 0;
 256}
 257
 258static void cfg80211_rfkill_sync_work(struct work_struct *work)
 259{
 260        struct cfg80211_registered_device *rdev;
 261
 262        rdev = container_of(work, struct cfg80211_registered_device, rfkill_sync);
 263        cfg80211_rfkill_set_block(rdev, rfkill_blocked(rdev->rfkill));
 264}
 265
 266static void cfg80211_event_work(struct work_struct *work)
 267{
 268        struct cfg80211_registered_device *rdev;
 269
 270        rdev = container_of(work, struct cfg80211_registered_device,
 271                            event_work);
 272
 273        rtnl_lock();
 274        cfg80211_lock_rdev(rdev);
 275
 276        cfg80211_process_rdev_events(rdev);
 277        cfg80211_unlock_rdev(rdev);
 278        rtnl_unlock();
 279}
 280
 281/* exported functions */
 282
 283struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv)
 284{
 285        static int wiphy_counter;
 286
 287        struct cfg80211_registered_device *rdev;
 288        int alloc_size;
 289
 290        WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key));
 291        WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc));
 292        WARN_ON(ops->connect && !ops->disconnect);
 293        WARN_ON(ops->join_ibss && !ops->leave_ibss);
 294        WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf);
 295        WARN_ON(ops->add_station && !ops->del_station);
 296        WARN_ON(ops->add_mpath && !ops->del_mpath);
 297        WARN_ON(ops->join_mesh && !ops->leave_mesh);
 298
 299        alloc_size = sizeof(*rdev) + sizeof_priv;
 300
 301        rdev = kzalloc(alloc_size, GFP_KERNEL);
 302        if (!rdev)
 303                return NULL;
 304
 305        rdev->ops = ops;
 306
 307        mutex_lock(&cfg80211_mutex);
 308
 309        rdev->wiphy_idx = wiphy_counter++;
 310
 311        if (unlikely(!wiphy_idx_valid(rdev->wiphy_idx))) {
 312                wiphy_counter--;
 313                mutex_unlock(&cfg80211_mutex);
 314                /* ugh, wrapped! */
 315                kfree(rdev);
 316                return NULL;
 317        }
 318
 319        mutex_unlock(&cfg80211_mutex);
 320
 321        /* give it a proper name */
 322        dev_set_name(&rdev->wiphy.dev, PHY_NAME "%d", rdev->wiphy_idx);
 323
 324        mutex_init(&rdev->mtx);
 325        mutex_init(&rdev->devlist_mtx);
 326        mutex_init(&rdev->sched_scan_mtx);
 327        INIT_LIST_HEAD(&rdev->wdev_list);
 328        spin_lock_init(&rdev->bss_lock);
 329        INIT_LIST_HEAD(&rdev->bss_list);
 330        INIT_WORK(&rdev->scan_done_wk, __cfg80211_scan_done);
 331        INIT_WORK(&rdev->sched_scan_results_wk, __cfg80211_sched_scan_results);
 332#ifdef CONFIG_CFG80211_WEXT
 333        rdev->wiphy.wext = &cfg80211_wext_handler;
 334#endif
 335
 336        device_initialize(&rdev->wiphy.dev);
 337        rdev->wiphy.dev.class = &ieee80211_class;
 338        rdev->wiphy.dev.platform_data = rdev;
 339
 340#ifdef CONFIG_CFG80211_DEFAULT_PS
 341        rdev->wiphy.flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
 342#endif
 343
 344        wiphy_net_set(&rdev->wiphy, &init_net);
 345
 346        rdev->rfkill_ops.set_block = cfg80211_rfkill_set_block;
 347        rdev->rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev),
 348                                   &rdev->wiphy.dev, RFKILL_TYPE_WLAN,
 349                                   &rdev->rfkill_ops, rdev);
 350
 351        if (!rdev->rfkill) {
 352                kfree(rdev);
 353                return NULL;
 354        }
 355
 356        INIT_WORK(&rdev->rfkill_sync, cfg80211_rfkill_sync_work);
 357        INIT_WORK(&rdev->conn_work, cfg80211_conn_work);
 358        INIT_WORK(&rdev->event_work, cfg80211_event_work);
 359
 360        init_waitqueue_head(&rdev->dev_wait);
 361
 362        /*
 363         * Initialize wiphy parameters to IEEE 802.11 MIB default values.
 364         * Fragmentation and RTS threshold are disabled by default with the
 365         * special -1 value.
 366         */
 367        rdev->wiphy.retry_short = 7;
 368        rdev->wiphy.retry_long = 4;
 369        rdev->wiphy.frag_threshold = (u32) -1;
 370        rdev->wiphy.rts_threshold = (u32) -1;
 371        rdev->wiphy.coverage_class = 0;
 372
 373        return &rdev->wiphy;
 374}
 375EXPORT_SYMBOL(wiphy_new);
 376
 377static int wiphy_verify_combinations(struct wiphy *wiphy)
 378{
 379        const struct ieee80211_iface_combination *c;
 380        int i, j;
 381
 382        for (i = 0; i < wiphy->n_iface_combinations; i++) {
 383                u32 cnt = 0;
 384                u16 all_iftypes = 0;
 385
 386                c = &wiphy->iface_combinations[i];
 387
 388                /* Combinations with just one interface aren't real */
 389                if (WARN_ON(c->max_interfaces < 2))
 390                        return -EINVAL;
 391
 392                /* Need at least one channel */
 393                if (WARN_ON(!c->num_different_channels))
 394                        return -EINVAL;
 395
 396                /*
 397                 * Put a sane limit on maximum number of different
 398                 * channels to simplify channel accounting code.
 399                 */
 400                if (WARN_ON(c->num_different_channels >
 401                                CFG80211_MAX_NUM_DIFFERENT_CHANNELS))
 402                        return -EINVAL;
 403
 404                if (WARN_ON(!c->n_limits))
 405                        return -EINVAL;
 406
 407                for (j = 0; j < c->n_limits; j++) {
 408                        u16 types = c->limits[j].types;
 409
 410                        /*
 411                         * interface types shouldn't overlap, this is
 412                         * used in cfg80211_can_change_interface()
 413                         */
 414                        if (WARN_ON(types & all_iftypes))
 415                                return -EINVAL;
 416                        all_iftypes |= types;
 417
 418                        if (WARN_ON(!c->limits[j].max))
 419                                return -EINVAL;
 420
 421                        /* Shouldn't list software iftypes in combinations! */
 422                        if (WARN_ON(wiphy->software_iftypes & types))
 423                                return -EINVAL;
 424
 425                        /* Only a single P2P_DEVICE can be allowed */
 426                        if (WARN_ON(types & BIT(NL80211_IFTYPE_P2P_DEVICE) &&
 427                                    c->limits[j].max > 1))
 428                                return -EINVAL;
 429
 430                        cnt += c->limits[j].max;
 431                        /*
 432                         * Don't advertise an unsupported type
 433                         * in a combination.
 434                         */
 435                        if (WARN_ON((wiphy->interface_modes & types) != types))
 436                                return -EINVAL;
 437                }
 438
 439                /* You can't even choose that many! */
 440                if (WARN_ON(cnt < c->max_interfaces))
 441                        return -EINVAL;
 442        }
 443
 444        return 0;
 445}
 446
 447int wiphy_register(struct wiphy *wiphy)
 448{
 449        struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
 450        int res;
 451        enum ieee80211_band band;
 452        struct ieee80211_supported_band *sband;
 453        bool have_band = false;
 454        int i;
 455        u16 ifmodes = wiphy->interface_modes;
 456
 457#ifdef CONFIG_PM
 458        if (WARN_ON((wiphy->wowlan.flags & WIPHY_WOWLAN_GTK_REKEY_FAILURE) &&
 459                    !(wiphy->wowlan.flags & WIPHY_WOWLAN_SUPPORTS_GTK_REKEY)))
 460                return -EINVAL;
 461#endif
 462
 463        if (WARN_ON(wiphy->ap_sme_capa &&
 464                    !(wiphy->flags & WIPHY_FLAG_HAVE_AP_SME)))
 465                return -EINVAL;
 466
 467        if (WARN_ON(wiphy->addresses && !wiphy->n_addresses))
 468                return -EINVAL;
 469
 470        if (WARN_ON(wiphy->addresses &&
 471                    !is_zero_ether_addr(wiphy->perm_addr) &&
 472                    memcmp(wiphy->perm_addr, wiphy->addresses[0].addr,
 473                           ETH_ALEN)))
 474                return -EINVAL;
 475
 476        if (wiphy->addresses)
 477                memcpy(wiphy->perm_addr, wiphy->addresses[0].addr, ETH_ALEN);
 478
 479        /* sanity check ifmodes */
 480        WARN_ON(!ifmodes);
 481        ifmodes &= ((1 << NUM_NL80211_IFTYPES) - 1) & ~1;
 482        if (WARN_ON(ifmodes != wiphy->interface_modes))
 483                wiphy->interface_modes = ifmodes;
 484
 485        res = wiphy_verify_combinations(wiphy);
 486        if (res)
 487                return res;
 488
 489        /* sanity check supported bands/channels */
 490        for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
 491                sband = wiphy->bands[band];
 492                if (!sband)
 493                        continue;
 494
 495                sband->band = band;
 496                if (WARN_ON(!sband->n_channels))
 497                        return -EINVAL;
 498                /*
 499                 * on 60gHz band, there are no legacy rates, so
 500                 * n_bitrates is 0
 501                 */
 502                if (WARN_ON(band != IEEE80211_BAND_60GHZ &&
 503                            !sband->n_bitrates))
 504                        return -EINVAL;
 505
 506                /*
 507                 * Since cfg80211_disable_40mhz_24ghz is global, we can
 508                 * modify the sband's ht data even if the driver uses a
 509                 * global structure for that.
 510                 */
 511                if (cfg80211_disable_40mhz_24ghz &&
 512                    band == IEEE80211_BAND_2GHZ &&
 513                    sband->ht_cap.ht_supported) {
 514                        sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
 515                        sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40;
 516                }
 517
 518                /*
 519                 * Since we use a u32 for rate bitmaps in
 520                 * ieee80211_get_response_rate, we cannot
 521                 * have more than 32 legacy rates.
 522                 */
 523                if (WARN_ON(sband->n_bitrates > 32))
 524                        return -EINVAL;
 525
 526                for (i = 0; i < sband->n_channels; i++) {
 527                        sband->channels[i].orig_flags =
 528                                sband->channels[i].flags;
 529                        sband->channels[i].orig_mag = INT_MAX;
 530                        sband->channels[i].orig_mpwr =
 531                                sband->channels[i].max_power;
 532                        sband->channels[i].band = band;
 533                }
 534
 535                have_band = true;
 536        }
 537
 538        if (!have_band) {
 539                WARN_ON(1);
 540                return -EINVAL;
 541        }
 542
 543#ifdef CONFIG_PM
 544        if (rdev->wiphy.wowlan.n_patterns) {
 545                if (WARN_ON(!rdev->wiphy.wowlan.pattern_min_len ||
 546                            rdev->wiphy.wowlan.pattern_min_len >
 547                            rdev->wiphy.wowlan.pattern_max_len))
 548                        return -EINVAL;
 549        }
 550#endif
 551
 552        /* check and set up bitrates */
 553        ieee80211_set_bitrate_flags(wiphy);
 554
 555        mutex_lock(&cfg80211_mutex);
 556
 557        res = device_add(&rdev->wiphy.dev);
 558        if (res) {
 559                mutex_unlock(&cfg80211_mutex);
 560                return res;
 561        }
 562
 563        /* set up regulatory info */
 564        wiphy_regulatory_register(wiphy);
 565
 566        list_add_rcu(&rdev->list, &cfg80211_rdev_list);
 567        cfg80211_rdev_list_generation++;
 568
 569        /* add to debugfs */
 570        rdev->wiphy.debugfsdir =
 571                debugfs_create_dir(wiphy_name(&rdev->wiphy),
 572                                   ieee80211_debugfs_dir);
 573        if (IS_ERR(rdev->wiphy.debugfsdir))
 574                rdev->wiphy.debugfsdir = NULL;
 575
 576        if (wiphy->flags & WIPHY_FLAG_CUSTOM_REGULATORY) {
 577                struct regulatory_request request;
 578
 579                request.wiphy_idx = get_wiphy_idx(wiphy);
 580                request.initiator = NL80211_REGDOM_SET_BY_DRIVER;
 581                request.alpha2[0] = '9';
 582                request.alpha2[1] = '9';
 583
 584                nl80211_send_reg_change_event(&request);
 585        }
 586
 587        cfg80211_debugfs_rdev_add(rdev);
 588        mutex_unlock(&cfg80211_mutex);
 589
 590        /*
 591         * due to a locking dependency this has to be outside of the
 592         * cfg80211_mutex lock
 593         */
 594        res = rfkill_register(rdev->rfkill);
 595        if (res)
 596                goto out_rm_dev;
 597
 598        rtnl_lock();
 599        rdev->wiphy.registered = true;
 600        rtnl_unlock();
 601        return 0;
 602
 603out_rm_dev:
 604        device_del(&rdev->wiphy.dev);
 605        return res;
 606}
 607EXPORT_SYMBOL(wiphy_register);
 608
 609void wiphy_rfkill_start_polling(struct wiphy *wiphy)
 610{
 611        struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
 612
 613        if (!rdev->ops->rfkill_poll)
 614                return;
 615        rdev->rfkill_ops.poll = cfg80211_rfkill_poll;
 616        rfkill_resume_polling(rdev->rfkill);
 617}
 618EXPORT_SYMBOL(wiphy_rfkill_start_polling);
 619
 620void wiphy_rfkill_stop_polling(struct wiphy *wiphy)
 621{
 622        struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
 623
 624        rfkill_pause_polling(rdev->rfkill);
 625}
 626EXPORT_SYMBOL(wiphy_rfkill_stop_polling);
 627
 628void wiphy_unregister(struct wiphy *wiphy)
 629{
 630        struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
 631
 632        rtnl_lock();
 633        rdev->wiphy.registered = false;
 634        rtnl_unlock();
 635
 636        rfkill_unregister(rdev->rfkill);
 637
 638        /* protect the device list */
 639        mutex_lock(&cfg80211_mutex);
 640
 641        wait_event(rdev->dev_wait, ({
 642                int __count;
 643                mutex_lock(&rdev->devlist_mtx);
 644                __count = rdev->opencount;
 645                mutex_unlock(&rdev->devlist_mtx);
 646                __count == 0; }));
 647
 648        mutex_lock(&rdev->devlist_mtx);
 649        BUG_ON(!list_empty(&rdev->wdev_list));
 650        mutex_unlock(&rdev->devlist_mtx);
 651
 652        /*
 653         * First remove the hardware from everywhere, this makes
 654         * it impossible to find from userspace.
 655         */
 656        debugfs_remove_recursive(rdev->wiphy.debugfsdir);
 657        list_del_rcu(&rdev->list);
 658        synchronize_rcu();
 659
 660        /*
 661         * Try to grab rdev->mtx. If a command is still in progress,
 662         * hopefully the driver will refuse it since it's tearing
 663         * down the device already. We wait for this command to complete
 664         * before unlinking the item from the list.
 665         * Note: as codified by the BUG_ON above we cannot get here if
 666         * a virtual interface is still present. Hence, we can only get
 667         * to lock contention here if userspace issues a command that
 668         * identified the hardware by wiphy index.
 669         */
 670        cfg80211_lock_rdev(rdev);
 671        /* nothing */
 672        cfg80211_unlock_rdev(rdev);
 673
 674        /*
 675         * If this device got a regulatory hint tell core its
 676         * free to listen now to a new shiny device regulatory hint
 677         */
 678        wiphy_regulatory_deregister(wiphy);
 679
 680        cfg80211_rdev_list_generation++;
 681        device_del(&rdev->wiphy.dev);
 682
 683        mutex_unlock(&cfg80211_mutex);
 684
 685        flush_work(&rdev->scan_done_wk);
 686        cancel_work_sync(&rdev->conn_work);
 687        flush_work(&rdev->event_work);
 688
 689        if (rdev->wowlan && rdev->ops->set_wakeup)
 690                rdev->ops->set_wakeup(&rdev->wiphy, false);
 691        cfg80211_rdev_free_wowlan(rdev);
 692}
 693EXPORT_SYMBOL(wiphy_unregister);
 694
 695void cfg80211_dev_free(struct cfg80211_registered_device *rdev)
 696{
 697        struct cfg80211_internal_bss *scan, *tmp;
 698        rfkill_destroy(rdev->rfkill);
 699        mutex_destroy(&rdev->mtx);
 700        mutex_destroy(&rdev->devlist_mtx);
 701        mutex_destroy(&rdev->sched_scan_mtx);
 702        list_for_each_entry_safe(scan, tmp, &rdev->bss_list, list)
 609. *rdev->bss_list
device_dkree(struct rdev);
 607        return  607}
 607wiphy_unree(struct wiphy)
 607
 607void mutexashnistered_device *rdev-><;flags &amef="net/wireless/core.c#L682" id="L682" class="line" name=7L610"> 617{
 617        struct EXPORT_SYMBOL(wiphy_unree(struct  702
 617        if (!wiphy_ret_hw/wirt(struct wiphy_ret_hw/wirt<11_registered_device" class href="+code=wiphy" class="sref">wiphy)
list)
list)
 617                retu7n;
 617        cfg80211_registered_device *rdev)
wiphy_to_dev(wiphy);
 617         617}
rdev->(struct wiphy_ret_hw/wirt<11_re>rdev->rfkill);
list)
 607sched_scaule>);
rdev->sche>wiphy_rc(&wiphy_rc 607
 627void EXPORT_SYMBOL(wiphy_un>wiphy_ret_hw/wirt(struct wiphy_ret_hw/wirt<11_r631" id="L631" class="line" name=7L621"> 627{
 627        struct );
<11_registered_device" class rdev"istermp; wiphy)
 617
 627        (<="sref">wiphy)
( 627}
cfg80211_registered_device *rdev)
 617 627
flush_wo >(wip;
(<="srf">list)
);
 607void rfkilef="net/wireless/core.c#L6lass="sref">wiphy_to_dev(wiphy);
(wiphy),
 607{
 637        struct cfg80211_lock_rdev(rdev);
 637
 637        rdev->rdev->rfkill);ess/creq"+code=tmp" class="creqock" lass="sref">rdev->ops->wdev_lista href="+code=wide.c#L5_pass="sref">wiphy_t/a>a href="+code=wide.c#L5)L577" id="L577" class="line" name=7L633"> 637        ops->wdev_listabort wiphy_ref="net/wireless/core.c#L600" id="L600" class="line" name=7L634"> 637        __count =_code=rdevireless/c"net/wireless/c =_code=rdevireless/c11_re>rdev->tmp, & 627
 637         637
cf1_unlock_rdev(rdev);
 637         637        mutex_lock(&cfg8a href="+code=sched_scan_mtx" class="sref">sched_scan_mtx);
 647
 647        rdev->rdev->rfkill);esireless/creq"+code=tmp" classireless/creqock" lass="sref1" id="L641" class="line" name=7L632"> 637                int 7a hre7="+code=__count" classops->flags &amef="net/wireless/core.c#L_pass="sref">wiphy_t/a>a href="+code=wide.c#L5"sref">flags &am1" /a>a href="+code=w1" /a>c#L5)L577" id="L577" class="line" name=7L643"> 647                mutex_lo=_code=rdevirelessireless/"net/wireless/c =code=rdevirelessireless/11_re>rdev->tmp, & 647                 647                 647                mutex_lock(&rdev->devlistd_scan_mtx);
 637
 647        mutex_lock(&rdev->devlist_mtx);
 647        BUG_ON(!a href="+code=opencount" class="sref">opencount;
 657        mutex_unlock(&rdev->devlist_mtx);
 657
wait_eventke_amp;rdev->devlist_mt ({
 637         657mutex_elespuwiphy);
(wiphy),
<1" /a>a href="+code=w1" /a>c#L5)51" id="L651" class="line" name=7L644"> 647 657 657        cfg80211_deless/core_a>((<="sref">wiphy)
( 657         657        cfg80211_registered_device *rdev)
wiphy_to_dev(wiphy);
(wiphy),
 657
 667        mutex_ASSERT_RTN( 667 667rdev->rdev->a href="+code=wide.c#L5"sref">flags &am1" /a>a href="+code=w1" /a>c#L5)L2" id="L632" class="line" name=7L653"> 657 667 667flush_wock(&rdev->devlist_mtx);
 667mutex_loel_rcu(&rdev->a href="+code=wide.c#L5"sref">flags &amhref="net/wireless/core.c#L658" id="L658" class="line" name=7L667"> 667devlist_mtx_rdev_list_generation_mtx_rdev_listtx" L681" id="L681" class="line" name=7L668"> 667 667rdev->a href="+code=wide.c#L5"sref">flags &amiftyped_device * 677         * 677        /* nothing  class="ref"="sref">list_empt/a>a href="+code=wide.c#L5"sref">flags &2p/wirel  677         677
ops->set_wakeureles2p/istered_device *rdev->devlist href="net/wireless/core.c#L6f">list)
( 667        __countt/a>a href="+code=wide.c#L5"sref">flags &2p/wirel false;
 677mutex_a href="+code=opencount" class="sref">opencount;
 677 667 667        scheWARNhrehreCEd_device * 667
 687         687        device_dunlock(&rdev->devlist_mtx);
 687
 687        EXPORT_SYMBOL(wifg80211_deless/core_a>( 667
 687         *wiphy_to_dev * 687        dev);
 667         667
 687        if (cfg80211_depdate_ican _numa href="+code=wfg80211_depdate_ican _num11_registered_device" class="sref">cfg80211_registered_device *rdev)
 697                 *wiphy_iftyped_device *__countnuma href="+code=wnum11_r62" id="L652" class="line" name=7L691"> 697         697}
 697 697
rtnl_unl href="+code=devlist_mtx" class="sref">devlistnum_runnop__ican ef="+code=set_wanum_runnop__ican enlock+ef">false;
 687void rdev-> *wiphy_NLref="+IFTYPE_MONITORd_device * 687{
__countl href="+code=devlist_mtx" class="sref">devlistnum_runnop__monitor_ican ef="+code=set_wanum_runnop__monitor_ican enlock+ef">false;
 667        struct  697         697        __counta href="+1" /a>_nox._nox.(&rdev)
 708        schedirt(struct  708        /* nothing  class=""""""""""""""""""""""""""free"">rdev)
a href="+code=w1de.c#L562" id="L652" class="line" name=8L702"> 708         6098/
 *rdev)
a href="+code=w1de.c#L531" id="L631" class="line" name=8L4"net/wi8e/a>
(<="sref">wiphy)
(flags &amieee+code=at/a>);
void cfg80211_registered_device *rdev)
 608}
__countre href="net/wirelre.c#L645" id="L645" class="line" name=8L607"> 608 608
list_empt/a>a href="+code=wide.c#L562" id="L652" class="line" name=8L908"> 608        wiphy_NOTIFY_DONEd_device * 618{
 618        struct device_dref="net/wireless/core.c#L6lass="sref">wiphy_to_dev(wiphy);
(wiphy),
 708
 618        if (!mutex_WARNhref="+code=list_eWARNhre11_re>rdev->a href="+code=wide.c#L5"sref">flags &amiftyped_device *wiphy_NLref="+IFTYPE_UNSPECIFIEDd_device *                retu8n;
 618        rdev->(struct  618         * 618}
mutex_SET_NETDEV_DEVTYPEd_device *rdev->rdev-> * 608 608
 * 628void  href="net/wireless/core.c#L675" id="L675" class="line" name=8L621"> 628{

reless/yabee.c#L675" id="L675" class="line" name=8L702"> 708        struct  618
 628         628}
mutex_ode=rdin
rdev->a href="+code=wide.c#L5"sref">flags &amef="net/wireless/core.c#L700" id="L700" class="line" name=8L616"> 618__countINIT_WORK"net/wireless/cINIT_WORKass="sref">rdev->a href="+code=wide.c#L5"sref">flags &amcleanup>);
list)
();
);
<11_r700" id="L700" class="line" name=8L617"> 618
mutex_INIT_LIST_HEADd_device *rdev->a href="+code=wide.c#L5"sref">flags &ameless/href="net/wireless/eless/href11_r700" id="L700" class="line" name=8L608"> 608void schedpinv" clain
rdev->a href="+code=wide.c#L5"sref">flags &ameless/h>(& 608{
mutex_INIT_LIST_HEADd_device *rdev->a href="+code=wide.c#L5"sref">flags &ammgmt+code=rv_listef="+code=set_wamgmt+code=rv_liste11_r700" id="L700" class="line" name=8L630"> 638        struct rdev->rdev->a href="+code=wide.c#L5"sref">flags &ammgmt+code=rv_liste>(& 628
 638        mutex_ode=rd(&rdev->devlist_mtx);
 638        a href="+code=wide.c#L5"sref">flags &amindex.);
devlist"e=cfi 638        __countess/cadda>(&rdev->a href="+code=wide.c#L5"sref">flags &amhref="net/wireless/core.c#L="sref">rdev->bss_list 628
mutex_a href="+code=opencount" class="sref">opencount_mtx_rdev_list_generation_mtx_rdev_listtx" L681" id="L681" class="line" name=8L636"> 638         638
mutex_ef="net/wireless/core.c#L"sref">flags &amfeatur ef="+code=set_wafeatur e=cfg8|ass="sref">wiphy_NETIF_F_NETNS_LOCA( 608         638        rdev->rdev->flags &amef="net/wireless/core.c#L>dev);
rdev->bss_listdev);
 648
 648        /* nothing  class="""""""""dev);
);
"faired hintdd ="s+code sym !\""e.c#L67649" id="L649" class="line" name=8L632"> 638                int 8a hre8="+code=__count" class93" id="L693" class="line" name=8L643"> 648                mutex_lot/a>a href="+code=wide.c#L5"sref">flags &am1" /a>a href="+code=w1" /a>c#L5_ped_device" classef="net/wireless/core.c#L49" id="L649" class="line" name=8L634"> 638                __countt/a>a href="+code=wide.c#L5"sref">flags &amsme/wirt(struct  628                mutex_ode=rd(&rdev->devlist_mtx);
 648                 638
mutex_a>(wiphy),
dev);
 608        schea>(wiphy),
dev);
 638        mutex_a>(wiphy),
dev);
dev);
 * 658         648
 638        rdev->(wiphy),
flags &amflagef="+code=set_waflage+code"sref">rdev-> * 648mutex_a>(wiphy),
wiphy_ref="net/wireless/core.c#L600" id="L600" class="line" name=8L644"> 648 628mutex_a>(wiphy),
wiphy_ href="net/wireless/core.c#L634" id="L634" class="line" name=8L656"> 658         658        mutex_a>(wiphy),
 658         658
list_empef="net/wireless/core.c#L"sref">flags &amethtool_href="+code=set_waethtool_hre.c#L62" id="L632" class="line" name=8L660"> 668        list_empef="net/wireless/core.c#L"sref">flags &amethtool_href="+code=set_waethtool_hre.c#L_pesref">rdev-> 668 668rdev->a href="+code=wide.c#L5"sref">flags &amiftyped_device *wiphy_NLref="+IFTYPE_STATIref="+code=list_eNLref="+IFTYPE_STATIre=cfg8||2" id="L632" class="line" name=8L643"> 648mutex_a>(wiphy),
 *wiphy_NLref="+IFTYPE_P2P_CLIENTd_device * 648mutex_a>(wiphy),
 *wiphy_NLref="+IFTYPE_ADHOCd_device *list_empt/a>a href="+code=wide.c#L5"sref">flags &amuse_4add/a>);
 628mutex_ef="net/wireless/core.c#L"sref">flags &riv_flagef="+code=set_wapriv_flage=cfg8|ass="sref">wiphy_IFF_DONT_BRIDGEd_device * 658 668 668rdev->a href="+code=wide.c#L5"sref">flags &amiftyped_device * 668 * 678        list_empcode=rdev"eave_ial_bss *rdev->list)
wiphy_ref="net/wireless/core.c#L6651" id="L651" class="line" name=8L671"> 678        /* nothing  class="lass="srbreak81" id="L681" class="line" name=8L672"> 678         * 648
 648        list_empck(&cfg8a href="+code=sched_scan_mtx" class="sref">sched_scan_mtx);
 678list_emp=_code=rdevirelessireless/"net/wireless/c =code=rdevirelessireless/11_re>rdev->tmp, & 678list_empck(&rdev->devlistd_scan_mtx);
 668 668        list_emp"e=cfh>(&(&11_re>rdev->< >( 668
 688        list_empkree(struct rdev->(wiphy),
dev);
 * 688        /* nothing  class="""""""""dev);
(wiphy),
dev);
 * 688
);
(wiphy),
dev);
 648        mutex_a>(wiphy),
dev);
dev);
 * 668
 688        list_emp=_code=rdevdislesseermp; list)
 678        list_empWLAN_REASON_DEAUTH_LEAVINGd_device *wiphy_ref="net/wireless/core.c#L6651" id="L651" class="line" name=8L667"> 668        list_empcode=rdevmlme_dow/"net/wireless/ccode=rdevmlme_dow/11_re>rdev->list)
 668
list_emp"e=cf(&(&11_re>rdev->< >( 688        if ( 698                 * 698        /* nothing  class="""""""""dev);
 *rdev->list)
 698}
 698 * 668
list_empcode=rdevireleamp;list)
 688void  678{
 668        struct  668         698        mutex_a>(wiphy),
 709         709        /* nothing caserdev_add" class=NETDEV_DOWef="+code=list_eNETDEV_DOWe11_d04" id="L604" class="line" name=9L702"> 709        mutex_fg80211_depdate_ican _numa href="+code=wfg80211_depdate_ican _num11_re>rdev->list)
a href="+code=wide.c#L5"sref">flags &amiftyped_device * 60990de=mutex_lock" class="sref">mutex_loe=cfhol
__countqueue>);
rdev->a href="+code=wide.c#L5"sref">flags &amcleanup>);
void {
 *        struct  609
 609         619{
 709        struct  709
 619        if (!rdev->);
<_synca href="net/wircircel>);
<_syncass="sref">rdev->a href="+code=wide.c#L5"sref">flags &amcleanup>);
                retu9n;
list_empck(&cfg8a href="+code=sched_scan_mtx" class="sref">sche_mtx);
 619        list_empa href="+code=opencount" class="sref">opencount;
 619        list_empck(&rdev->devlist_mtx);
}
list_empdlespuwiphy);
 609 609
mutex_fg80211_depdate_ican _numa href="+code=wfg80211_depdate_ican _num11_re>rdev->list)
a href="+code=wide.c#L5"sref">flags &amiftyped_device * 629void ev);
 709{
/* nothing  class=""sref">list_empck(&cfg8a href="+code=sched_scan_mtx" class="sref">sche_mtx);
 709        struct mutex_"e=cfh>(&(&11_re>rdev->< >( 619
rdev->a href="+code=wide.c#L5"sref">flags &amiftyped_device * 629         629}
 * 619ev);
rdev->list)
a href="+code=wide.c#L5681" id="L681" class="line" name=9L7"net/wi9
 609void  609{
ev);
rdev->list)
a href="+code=wide.c#L5681" id="L681" class="line" name=9L630"> 639        struct  629
 639         * 639         * 639         629
/
 639        
_device" classmemcpef="net/wirelessmemcpe_mutex" class="sref">cfg8setump;rdev-> 609        rdev-> 609        /
 649
rdev->false;
a href="+code=wide.c#L5"sref">flags &amsseep; 649        /* nothing  class=""""""""""""""""">rdev->false;
a href="+code=wide.c#L5"sref">flags &ameesh_ee=up="e/"net/wireless/ceesh_ee=up="e/e=__81" id="L681" class="line" name=9L632"> 639                int 9a hre9="+code=__count" classssssssssssssssssref">rdev->(wiphy),
 649                rdev-><=_code=rdevjoi/_meshbss *rdev->list)
 639                cfg8setump; 629                cfg8effault_eesh_lesfigp; 649                 639
 609         639         659         649
/* nothing  class="93" id="L693" class="line" name=9L632"> 639        mutex_"e=cf(&(&11_re>rdev->< >( 649list_empa href="+code=opencount" class="sref">opencount;
 649list_empck(&rdev->devlist_mtx);
 629mutex_fg80211_den" claa href="+code=devlif="+code=en" claa hr11_re>rdev-> 659         639         659         659
 669         669/* nothing  class="ref"e>rdev->a href="+code=wide.c#L5"sref">flags &amiftyped_device *wiphy_NLref="+IFTYPE_STATIref="+code=list_eNLref="+IFTYPE_STATIre=cfg8||2" id="L632" class="line" name=9L662"> 669mutex_a>(wiphy),
 *wiphy_NLref="+IFTYPE_P2P_CLIENTd_device * 649list_empa href="+code=opencount" class="sref">opencount *flags &amset_power_egmtp; 649rdev->opencount *flags &amset_power_egmtp;rdev->(wiphy),
list)
 629wiphy),
 659rdev->(wiphy),
 669/
 659rdev->(wiphy),
wiphy_ href="net/wireless/core.c#L634" id="L634" class="line" name=9L669"> 669 679         679        /* nothing caserdev_add" class=NETDEV_UNREGISTERd_device * 679         649

reless/yabee.c#L675" id="L675" class="line" name=9L644"> 649         679 679 669mutex_ck(&cfg8a href="+code=sched_scan_mtx" class="sref">sche_mtx);
 669         669
 689         679         679
 649         669
 689        list_empess/cemptef="net/wirelessess/cempte_mutex" class="sref">cfg8t/a>a href="+code=wide.c#L5"sref">flags &amhref="net/wireless/core.c#L66577" id="L577" class="line" name=9L676"> 679        flags &amsysfs_remove_ cfg8ef="net/wireless/core.c#L"sref">flags &amef="net/wireless/core.c#L>dev);
"="s+code"e.c#L67)51" id="L651" class="line" name=9L667"> 669        list_empess/cdela>(&cfg8t/a>a href="+code=wide.c#L5"sref">flags &amhref="net/wireless/core.c#L651" id="L651" class="line" name=9L668"> 669
list_empa href="+code=opencount" class="sref">opencount_mtx_rdev_list_generation_mtx_rdev_listtx" L681" id="L681" class="line" name=9L689"> 689        if (mutex_fg80211_dmlme_purge_code=rv_listef="+code=set_wafg80211_dmlme_purge_code=rv_liste11_re>rdev->< >( 699                 699        /* nothing  class="""""""""dev);
(struct rdev->(wiphy),
dev);
 679}
 699 669
list_empck(&rdev->devlist_mtx);
 689void  679{
c#c#L675" id="L675" class="line" name=9L667"> 669        struct  669         689         7010L700         727/ca/ca4e33424bbffbfcff8a19eee47a58cbb88c_3/10L70>" id="L669" class="line" name=10L100"> 7010L/a>        /* nothing  class=""sref">list_empsynchronizea>(& 7010L/a>}
mutex_INIT_LIST_HEADamp;cfg8t/a>a href="+code=wide.c#L5"sref">flags &amhref="net/wireless/core.c#L651" id="L651" class="line" name=10L300"> 7010L/a> 7010L/a>
 7010L/a>void  7010L/a>{
 7010L/a>        struct 10Le=cfg80211_inck" class="sref">mutex_fg80211_dproc"li_"e=cfevthesf="+code=set_wafg80211_dproc"li_"e=cfevthes11_re>rdev->< >( 7010L/a>         7010L/a>         * 7010{
wiphy),
flags &am, we can _m &asf="+code=set_wa, we can _m &ase=mut"sref">rdev-> *rdev->(wiphy),
 * 7010        struct 10<">/* nothing  class="""""""""return">rdev-> *rdev-> * 7010
rdev->rdev->wiphy),
 7010        if (!10rdev-> *rdev-> 7010                retu1010list_empck(&cfg8a href="+code=sched_scan_mtx" class="sref">sche_mtx);
 7010        mutex_retef="+code=sched_etc#L5_pes="sref">mutex_fg80211_dss/cadd_, we can f="+code=set_wafg80211_dss/cadd_, we can 11_re>rdev->list)
a href="+code=wide.c#L5"sref">flags &amiftyped_device * 7010        list_empck(&rdev->devlist_mtx);
 7010}
rdev-> 7010rdev-> *rdev-> 7010
 7010void  7010{
 7010        struct 10<"+code=__counreturn">rdev-> * 7010
 7010         7010}
(&mutex_fg80211_dn" /a>_notifierf="+code=set_wafg80211_dn" /a>_notifierc#L5_pe77" id="L577" class="line" name=10<600"> 7010dev);
mutex_fg80211_dn" /a>_notifier_cahramp;_notifier_cahrtx" f7" id="L577" class="line" name=10<700"> 7010
 7010void  7010{
mutex__dn" _exirmp; mutex_fg80211_dpern" _exirmp;  7010        struct 10 7010
/* nothing gistered_device" classfg80211_dcode=r thd_/a>in f="+code=set_wafg80211_dcode=r thd_/a>in c#L5_*d_device" classa href="+code=devlist_mtx" 34" id="L634" class="line" name=103200"> 7010         7010        (& 7010        (&cfg8fg80211_dm=cfgf="+code=set_wafg80211_dm=cfgc#L5)51" id="L651" class="line" name=103500"> 7010
cfg8fg80211_dre=cfhref="net/wireless/fg80211_dre=cfhreftx" f">list)
 7010        rdev->rdev->rdev->devlista href="net/wireless/core.c#L)f">list)
 7010
list_empWARN_ref="+code=list_eWARN_re11_r">rdev->rdev->cfg8init_netef="+code=schedinit_netc#L5))51" id="L651" class="line" name=103800"> 7010        10 7010        (&rdev-> 7010
(& 7010         7010                int 1010<2#L632" id="L632" class="line" name=104300"> 7010                10<3e=mustaticrgistered_device" classpern" _opev_listef="+code=set_wapern" _opev_liste+codes="sref">mutex_fg80211_dpern" _ * 7010                10<4e=mutex_lock>dev);
mutex_fg80211_dpern" _exirmp;  7010                10<5=cfg}34" id="L634" class="line" name=104600"> 7010                10 7010
mutex_fg80211_dinitmp;  7010         7010         7010         7010
mutex_code=r tdpern" _/a>in f="+code=set_wacode=r tdpern" _/a>in ass="sref">rdev-> * 7010        10<"+code=__counref">rdev-> 7010mutex_ou/cfaildpern" f="+code=set_waou/cfaildpern" tx" 34" id="L634" class="line" name=105400"> 7010 7010mutex_acore_dysfs_initmp;  7010        rdev-> 7010        mutex_ou/cfailddysfsf="+code=set_waou/cfailddysfstx" 34" id="L634" class="line" name=105800"> 7010         7010
mutex_code=r tdn" /a>in _notifierf="+code=set_wacode=r tdn" /a>in _notifierass="sref">rdev->_notifierf="+code=set_wafg80211_dn" /a>_notifierc#L5651" id="L651" class="line" name=106700"> 7010        10rdev-> 7010/* nothing  class="gotoes="sref">mutex_ou/cfaildnotifierf="+code=set_waou/cfaildnotifiertx" 34" id="L634" class="line" name=106200"> 7010 7010mutex_nl+code_initmp;  7010rdev-> 7010mutex_ou/cfaildnl+codef="+code=set_waou/cfaildnl+codetx" 34" id="L634" class="line" name=106600"> 7010 7010mutex_debugfs_create_dirf="+code=set_wadebugfs_create_dir11_re> href="net/wgisop_p>"ieee+code"e.c#L67f">list)
 7010 7010mutex_codulatory_initmp;  7010        rdev-> 7010        10<">/* nothing  class="gotoes="sref">mutex_ou/cfaildcodf="+code=set_waou/cfaildcodtx" 34" id="L634" class="line" name=107200"> 7010         7010
mutex_freate_sop_letsread>);
);
 href="net/wgisop_p>"fg80211_"e.c#L67)51" id="L651" class="line" name=10<400"> 7010        10<4+code=__counref"="sref">list_empfg80211_dwq"+code=tmp" clafg80211_dwq.c#L)1" id="L681" class="line" name=107500"> 7010mutex_ou/cfaildwq"+code=tmp" claou/cfaildwqtx" 34" id="L634" class="line" name=107600"> 7010 7010 7010         7010
mutex_ou/cfaildwq"+code=tmp" claou/cfaildwqtx" 04" id="L604" class="line" name=108700"> 7010         7010        mutex_ou/cfaildcodf="+code=set_waou/cfaildcodtx" 04" id="L604" class="line" name=108200"> 7010
 7010        mutex_ou/cfaildnl+codef="+code=set_waou/cfaildnl+codetx" 04" id="L604" class="line" name=108400"> 7010
in _notifierf="+code=set_wauncode=r tdn" /a>in _notifierass="sref">rdev->_notifierf="+code=set_wafg80211_dn" /a>_notifierc#L5651" id="L651" class="line" name=108500"> 7010        mutex_ou/cfaildnotifierf="+code=set_waou/cfaildnotifiertx" 04" id="L604" class="line" name=108600"> 7010         7010        mutex_ou/cfailddysfsf="+code=set_waou/cfailddysfstx" 04" id="L604" class="line" name=108800"> 7010
in f="+code=set_wauncode=r tdpern" _/a>in ass="sref">rdev-> * 7010        if (10<9e=__d="sref">mutex_ou/cfaildpern" f="+code=set_waou/cfaildpern" tx" 04" id="L604" class="line" name=109700"> 7010                10 7010         7010}
mutex_subdys_initcahramp;rdev-> 7010 7010
mutex__dexirmp; mutex_fg80211_dexirmp;  7010void  7010{
 7010        struct 10<7e=mutex_lockd_device" classnl+code_exirmp;  7010        in _notifierf="+code=set_wauncode=r tdn" /a>in _notifierass="sref">rdev->_notifierf="+code=set_wafg80211_dn" /a>_notifierc#L5651" id="L651" class="line" name=109900"> 7010         7011L700         7011L/a>        in f="+code=set_wauncode=r tdpern" _/a>in ass="sref">rdev-> * 7011L/a>}
);
);
rdev-> 7011L/a> 7011L/a>
rdev-> 7011L/a>void 
The original LXR softwf="nbs/th kd_device"http://sourceforge.1" cprojects/lxt">LXR ce aunite.c#Lf"relesexperialreal versionnbs/d_device"mailto:lxt@ hrux.no">lxt@ hrux.no.c#L.
void lxt. hrux.no kindly hostget hed_device"http://www.redpill- hrpro.no">Redpill Lhrpro AS.c#Lf"provider of Lhrux censulting and lpev_liste ser>in e since 1995.