linux/net/mac80211/util.c
<<
>>
Prefs
   1/*
   2 * Copyright 2002-2005, Instant802 Networks, Inc.
   3 * Copyright 2005-2006, Devicescape Software, Inc.
   4 * Copyright 2006-2007  Jiri Benc <jbenc@suse.cz>
   5 * Copyright 2007       Johannes Berg <johannes@sipsolutions.net>
   6 *
   7 * This program is free software; you can redistribute it and/or modify
   8 * it under the terms of the GNU General Public License version 2 as
   9 * published by the Free Software Foundation.
  10 *
  11 * utilities for mac80211
  12 */
  13
  14#include <net/mac80211.h>
  15#include <linux/netdevice.h>
  16#include <linux/export.h>
  17#include <linux/types.h>
  18#include <linux/slab.h>
  19#include <linux/skbuff.h>
  20#include <linux/etherdevice.h>
  21#include <linux/if_arp.h>
  22#include <linux/bitmap.h>
  23#include <linux/crc32.h>
  24#include <net/net_namespace.h>
  25#include <net/cfg80211.h>
  26#include <net/rtnetlink.h>
  27
  28#include "ieee80211_i.h"
  29#include "driver-ops.h"
  30#include "rate.h"
  31#include "mesh.h"
  32#include "wme.h"
  33#include "led.h"
  34#include "wep.h"
  35
  36/* privid for wiphys to determine whether they belong to us or not */
  37void *mac80211_wiphy_privid = &mac80211_wiphy_privid;
  38
  39struct ieee80211_hw *wiphy_to_ieee80211_hw(struct wiphy *wiphy)
  40{
  41        struct ieee80211_local *local;
  42        BUG_ON(!wiphy);
  43
  44        local = wiphy_priv(wiphy);
  45        return &local->hw;
  46}
  47EXPORT_SYMBOL(wiphy_to_ieee80211_hw);
  48
  49u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,
  50                        enum nl80211_iftype type)
  51{
  52        __le16 fc = hdr->frame_control;
  53
  54         /* drop ACK/CTS frames and incorrect hdr len (ctrl) */
  55        if (len < 16)
  56                return NULL;
  57
  58        if (ieee80211_is_data(fc)) {
  59                if (len < 24) /* drop incorrect hdr len (data) */
  60                        return NULL;
  61
  62                if (ieee80211_has_a4(fc))
  63                        return NULL;
  64                if (ieee80211_has_tods(fc))
  65                        return hdr->addr1;
  66                if (ieee80211_has_fromds(fc))
  67                        return hdr->addr2;
  68
  69                return hdr->addr3;
  70        }
  71
  72        if (ieee80211_is_mgmt(fc)) {
  73                if (len < 24) /* drop incorrect hdr len (mgmt) */
  74                        return NULL;
  75                return hdr->addr3;
  76        }
  77
  78        if (ieee80211_is_ctl(fc)) {
  79                if(ieee80211_is_pspoll(fc))
  80                        return hdr->addr1;
  81
  82                if (ieee80211_is_back_req(fc)) {
  83                        switch (type) {
  84                        case NL80211_IFTYPE_STATION:
  85                                return hdr->addr2;
  86                        case NL80211_IFTYPE_AP:
  87                        case NL80211_IFTYPE_AP_VLAN:
  88                                return hdr->addr1;
  89                        default:
  90                                break; /* fall through to the return */
  91                        }
  92                }
  93        }
  94
  95        return NULL;
  96}
  97
  98void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx)
  99{
 100        struct sk_buff *skb;
 101        struct ieee80211_hdr *hdr;
 102
 103        skb_queue_walk(&tx->skbs, skb) {
 104                hdr = (struct ieee80211_hdr *) skb->data;
 105                hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED);
 106        }
 107}
 108
 109int ieee80211_frame_duration(enum ieee80211_band band, size_t len,
 110                             int rate, int erp, int short_preamble)
 111{
 112        int dur;
 113
 114        /* calculate duration (in microseconds, rounded up to next higher
 115         * integer if it includes a fractional microsecond) to send frame of
 116         * len bytes (does not include FCS) at the given rate. Duration will
 117         * also include SIFS.
 118         *
 119         * rate is in 100 kbps, so divident is multiplied by 10 in the
 120         * DIV_ROUND_UP() operations.
 121         */
 122
 123        if (band == IEEE80211_BAND_5GHZ || erp) {
 124                /*
 125                 * OFDM:
 126                 *
 127                 * N_DBPS = DATARATE x 4
 128                 * N_SYM = Ceiling((16+8xLENGTH+6) / N_DBPS)
 129                 *      (16 = SIGNAL time, 6 = tail bits)
 130                 * TXTIME = T_PREAMBLE + T_SIGNAL + T_SYM x N_SYM + Signal Ext
 131                 *
 132                 * T_SYM = 4 usec
 133                 * 802.11a - 17.5.2: aSIFSTime = 16 usec
 134                 * 802.11g - 19.8.4: aSIFSTime = 10 usec +
 135                 *      signal ext = 6 usec
 136                 */
 137                dur = 16; /* SIFS + signal ext */
 138                dur += 16; /* 17.3.2.3: T_PREAMBLE = 16 usec */
 139                dur += 4; /* 17.3.2.3: T_SIGNAL = 4 usec */
 140                dur += 4 * DIV_ROUND_UP((16 + 8 * (len + 4) + 6) * 10,
 141                                        4 * rate); /* T_SYM x N_SYM */
 142        } else {
 143                /*
 144                 * 802.11b or 802.11g with 802.11b compatibility:
 145                 * 18.3.4: TXTIME = PreambleLength + PLCPHeaderTime +
 146                 * Ceiling(((LENGTH+PBCC)x8)/DATARATE). PBCC=0.
 147                 *
 148                 * 802.11 (DS): 15.3.3, 802.11b: 18.3.4
 149                 * aSIFSTime = 10 usec
 150                 * aPreambleLength = 144 usec or 72 usec with short preamble
 151                 * aPLCPHeaderLength = 48 usec or 24 usec with short preamble
 152                 */
 153                dur = 10; /* aSIFSTime = 10 usec */
 154                dur += short_preamble ? (72 + 24) : (144 + 48);
 155
 156                dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate);
 157        }
 158
 159        return dur;
 160}
 161
 162/* Exported duration function for driver use */
 163__le16 ieee80211_generic_frame_duration(struct ieee80211_hw *hw,
 164                                        struct ieee80211_vif *vif,
 165                                        enum ieee80211_band band,
 166                                        size_t frame_len,
 167                                        struct ieee80211_rate *rate)
 168{
 169        struct ieee80211_sub_if_data *sdata;
 170        u16 dur;
 171        int erp;
 172        bool short_preamble = false;
 173
 174        erp = 0;
 175        if (vif) {
 176                sdata = vif_to_sdata(vif);
 177                short_preamble = sdata->vif.bss_conf.use_short_preamble;
 178                if (sdata->flags & IEEE80211_SDATA_OPERATING_GMODE)
 179                        erp = rate->flags & IEEE80211_RATE_ERP_G;
 180        }
 181
 182        dur = ieee80211_frame_duration(band, frame_len, rate->bitrate, erp,
 183                                       short_preamble);
 184
 185        return cpu_to_le16(dur);
 186}
 187EXPORT_SYMBOL(ieee80211_generic_frame_duration);
 188
 189__le16 ieee80211_rts_duration(struct ieee80211_hw *hw,
 190                              struct ieee80211_vif *vif, size_t frame_len,
 191                              const struct ieee80211_tx_info *frame_txctl)
 192{
 193        struct ieee80211_local *local = hw_to_local(hw);
 194        struct ieee80211_rate *rate;
 195        struct ieee80211_sub_if_data *sdata;
 196        bool short_preamble;
 197        int erp;
 198        u16 dur;
 199        struct ieee80211_supported_band *sband;
 200
 201        sband = local->hw.wiphy->bands[frame_txctl->band];
 202
 203        short_preamble = false;
 204
 205        rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
 206
 207        erp = 0;
 208        if (vif) {
 209                sdata = vif_to_sdata(vif);
 210                short_preamble = sdata->vif.bss_conf.use_short_preamble;
 211                if (sdata->flags & IEEE80211_SDATA_OPERATING_GMODE)
 212                        erp = rate->flags & IEEE80211_RATE_ERP_G;
 213        }
 214
 215        /* CTS duration */
 216        dur = ieee80211_frame_duration(sband->band, 10, rate->bitrate,
 217                                       erp, short_preamble);
 218        /* Data frame duration */
 219        dur += ieee80211_frame_duration(sband->band, frame_len, rate->bitrate,
 220                                        erp, short_preamble);
 221        /* ACK duration */
 222        dur += ieee80211_frame_duration(sband->band, 10, rate->bitrate,
 223                                        erp, short_preamble);
 224
 225        return cpu_to_le16(dur);
 226}
 227EXPORT_SYMBOL(ieee80211_rts_duration);
 228
 229__le16 ieee80211_ctstoself_duration(struct ieee80211_hw *hw,
 230                                    struct ieee80211_vif *vif,
 231                                    size_t frame_len,
 232                                    const struct ieee80211_tx_info *frame_txctl)
 233{
 234        struct ieee80211_local *local = hw_to_local(hw);
 235        struct ieee80211_rate *rate;
 236        struct ieee80211_sub_if_data *sdata;
 237        bool short_preamble;
 238        int erp;
 239        u16 dur;
 240        struct ieee80211_supported_band *sband;
 241
 242        sband = local->hw.wiphy->bands[frame_txctl->band];
 243
 244        short_preamble = false;
 245
 246        rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx];
 247        erp = 0;
 248        if (vif) {
 249                sdata = vif_to_sdata(vif);
 250                short_preamble = sdata->vif.bss_conf.use_short_preamble;
 251                if (sdata->flags & IEEE80211_SDATA_OPERATING_GMODE)
 252                        erp = rate->flags & IEEE80211_RATE_ERP_G;
 253        }
 254
 255        /* Data frame duration */
 256        dur = ieee80211_frame_duration(sband->band, frame_len, rate->bitrate,
 257                                       erp, short_preamble);
 258        if (!(frame_txctl->flags & IEEE80211_TX_CTL_NO_ACK)) {
 259                /* ACK duration */
 260                dur += ieee80211_frame_duration(sband->band, 10, rate->bitrate,
 261                                                erp, short_preamble);
 262        }
 263
 264        return cpu_to_le16(dur);
 265}
 266EXPORT_SYMBOL(ieee80211_ctstoself_duration);
 267
 268void ieee80211_propagate_queue_wake(struct ieee80211_local *local, int queue)
 269{
 270        struct ieee80211_sub_if_data *sdata;
 271        int n_acs = IEEE80211_NUM_ACS;
 272
 273        if (local->hw.queues < IEEE80211_NUM_ACS)
 274                n_acs = 1;
 275
 276        list_for_each_entry_rcu(sdata, &local->interfaces, list) {
 277                int ac;
 278
 279                if (!sdata->dev)
 280                        continue;
 281
 282                if (test_bit(SDATA_STATE_OFFCHANNEL, &sdata->state))
 283                        continue;
 284
 285                if (sdata->vif.cab_queue != IEEE80211_INVAL_HW_QUEUE &&
 286                    local->queue_stop_reasons[sdata->vif.cab_queue] != 0)
 287                        continue;
 288
 289                for (ac = 0; ac < n_acs; ac++) {
 290                        int ac_queue = sdata->vif.hw_queue[ac];
 291
 292                        if (ac_queue == queue ||
 293                            (sdata->vif.cab_queue == queue &&
 294                             local->queue_stop_reasons[ac_queue] == 0 &&
 295                             skb_queue_empty(&local->pending[ac_queue])))
 296                                netif_wake_subqueue(sdata->dev, ac);
 297                }
 298        }
 299}
 300
 301static void __ieee80211_wake_queue(struct ieee80211_hw *hw, int queue,
 302                                   enum queue_stop_reason reason)
 303{
 304        struct ieee80211_local *local = hw_to_local(hw);
 305
 306        trace_wake_queue(local, queue, reason);
 307
 308        if (WARN_ON(queue >= hw->queues))
 309                return;
 310
 311        if (!test_bit(reason, &local->queue_stop_reasons[queue]))
 312                return;
 313
 314        __clear_bit(reason, &local->queue_stop_reasons[queue]);
 315
 316        if (local->queue_stop_reasons[queue] != 0)
 317                /* someone still has this queue stopped */
 318                return;
 319
 320        if (skb_queue_empty(&local->pending[queue])) {
 321                rcu_read_lock();
 322                ieee80211_propagate_queue_wake(local, queue);
 323                rcu_read_unlock();
 324        } else
 325                tasklet_schedule(&local->tx_pending_tasklet);
 326}
 327
 328void ieee80211_wake_queue_by_reason(struct ieee80211_hw *hw, int queue,
 329                                    enum queue_stop_reason reason)
 330{
 331        struct ieee80211_local *local = hw_to_local(hw);
 332        unsigned long flags;
 333
 334        spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
 335        __ieee80211_wake_queue(hw, queue, reason);
 336        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 337}
 338
 339void ieee80211_wake_queue(struct ieee80211_hw *hw, int queue)
 340{
 341        ieee80211_wake_queue_by_reason(hw, queue,
 342                                       IEEE80211_QUEUE_STOP_REASON_DRIVER);
 343}
 344EXPORT_SYMBOL(ieee80211_wake_queue);
 345
 346static void __ieee80211_stop_queue(struct ieee80211_hw *hw, int queue,
 347                                   enum queue_stop_reason reason)
 348{
 349        struct ieee80211_local *local = hw_to_local(hw);
 350        struct ieee80211_sub_if_data *sdata;
 351        int n_acs = IEEE80211_NUM_ACS;
 352
 353        trace_stop_queue(local, queue, reason);
 354
 355        if (WARN_ON(queue >= hw->queues))
 356                return;
 357
 358        if (test_bit(reason, &local->queue_stop_reasons[queue]))
 359                return;
 360
 361        __set_bit(reason, &local->queue_stop_reasons[queue]);
 362
 363        if (local->hw.queues < IEEE80211_NUM_ACS)
 364                n_acs = 1;
 365
 366        rcu_read_lock();
 367        list_for_each_entry_rcu(sdata, &local->interfaces, list) {
 368                int ac;
 369
 370                if (!sdata->dev)
 371                        continue;
 372
 373                for (ac = 0; ac < n_acs; ac++) {
 374                        if (sdata->vif.hw_queue[ac] == queue ||
 375                            sdata->vif.cab_queue == queue)
 376                                netif_stop_subqueue(sdata->dev, ac);
 377                }
 378        }
 379        rcu_read_unlock();
 380}
 381
 382void ieee80211_stop_queue_by_reason(struct ieee80211_hw *hw, int queue,
 383                                    enum queue_stop_reason reason)
 384{
 385        struct ieee80211_local *local = hw_to_local(hw);
 386        unsigned long flags;
 387
 388        spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
 389        __ieee80211_stop_queue(hw, queue, reason);
 390        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 391}
 392
 393void ieee80211_stop_queue(struct ieee80211_hw *hw, int queue)
 394{
 395        ieee80211_stop_queue_by_reason(hw, queue,
 396                                       IEEE80211_QUEUE_STOP_REASON_DRIVER);
 397}
 398EXPORT_SYMBOL(ieee80211_stop_queue);
 399
 400void ieee80211_add_pending_skb(struct ieee80211_local *local,
 401                               struct sk_buff *skb)
 402{
 403        struct ieee80211_hw *hw = &local->hw;
 404        unsigned long flags;
 405        struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
 406        int queue = info->hw_queue;
 407
 408        if (WARN_ON(!info->control.vif)) {
 409                ieee80211_free_txskb(&local->hw, skb);
 410                return;
 411        }
 412
 413        spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
 414        __ieee80211_stop_queue(hw, queue, IEEE80211_QUEUE_STOP_REASON_SKB_ADD);
 415        __skb_queue_tail(&local->pending[queue], skb);
 416        __ieee80211_wake_queue(hw, queue, IEEE80211_QUEUE_STOP_REASON_SKB_ADD);
 417        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 418}
 419
 420void ieee80211_add_pending_skbs_fn(struct ieee80211_local *local,
 421                                   struct sk_buff_head *skbs,
 422                                   void (*fn)(void *data), void *data)
 423{
 424        struct ieee80211_hw *hw = &local->hw;
 425        struct sk_buff *skb;
 426        unsigned long flags;
 427        int queue, i;
 428
 429        spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
 430        while ((skb = skb_dequeue(skbs))) {
 431                struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
 432
 433                if (WARN_ON(!info->control.vif)) {
 434                        ieee80211_free_txskb(&local->hw, skb);
 435                        continue;
 436                }
 437
 438                queue = info->hw_queue;
 439
 440                __ieee80211_stop_queue(hw, queue,
 441                                IEEE80211_QUEUE_STOP_REASON_SKB_ADD);
 442
 443                __skb_queue_tail(&local->pending[queue], skb);
 444        }
 445
 446        if (fn)
 447                fn(data);
 448
 449        for (i = 0; i < hw->queues; i++)
 450                __ieee80211_wake_queue(hw, i,
 451                        IEEE80211_QUEUE_STOP_REASON_SKB_ADD);
 452        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 453}
 454
 455void ieee80211_stop_queues_by_reason(struct ieee80211_hw *hw,
 456                                    enum queue_stop_reason reason)
 457{
 458        struct ieee80211_local *local = hw_to_local(hw);
 459        unsigned long flags;
 460        int i;
 461
 462        spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
 463
 464        for (i = 0; i < hw->queues; i++)
 465                __ieee80211_stop_queue(hw, i, reason);
 466
 467        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 468}
 469
 470void ieee80211_stop_queues(struct ieee80211_hw *hw)
 471{
 472        ieee80211_stop_queues_by_reason(hw,
 473                                        IEEE80211_QUEUE_STOP_REASON_DRIVER);
 474}
 475EXPORT_SYMBOL(ieee80211_stop_queues);
 476
 477int ieee80211_queue_stopped(struct ieee80211_hw *hw, int queue)
 478{
 479        struct ieee80211_local *local = hw_to_local(hw);
 480        unsigned long flags;
 481        int ret;
 482
 483        if (WARN_ON(queue >= hw->queues))
 484                return true;
 485
 486        spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
 487        ret = !!local->queue_stop_reasons[queue];
 488        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 489        return ret;
 490}
 491EXPORT_SYMBOL(ieee80211_queue_stopped);
 492
 493void ieee80211_wake_queues_by_reason(struct ieee80211_hw *hw,
 494                                     enum queue_stop_reason reason)
 495{
 496        struct ieee80211_local *local = hw_to_local(hw);
 497        unsigned long flags;
 498        int i;
 499
 500        spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
 501
 502        for (i = 0; i < hw->queues; i++)
 503                __ieee80211_wake_queue(hw, i, reason);
 504
 505        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 506}
 507
 508void ieee80211_wake_queues(struct ieee80211_hw *hw)
 509{
 510        ieee80211_wake_queues_by_reason(hw, IEEE80211_QUEUE_STOP_REASON_DRIVER);
 511}
 512EXPORT_SYMBOL(ieee80211_wake_queues);
 513
 514void ieee80211_iterate_active_interfaces(
 515        struct ieee80211_hw *hw,
 516        void (*iterator)(void *data, u8 *mac,
 517                         struct ieee80211_vif *vif),
 518        void *data)
 519{
 520        struct ieee80211_local *local = hw_to_local(hw);
 521        struct ieee80211_sub_if_data *sdata;
 522
 523        mutex_lock(&local->iflist_mtx);
 524
 525        list_for_each_entry(sdata, &local->interfaces, list) {
 526                switch (sdata->vif.type) {
 527                case NL80211_IFTYPE_MONITOR:
 528                case NL80211_IFTYPE_AP_VLAN:
 529                        continue;
 530                default:
 531                        break;
 532                }
 533                if (ieee80211_sdata_running(sdata))
 534                        iterator(data, sdata->vif.addr,
 535                                 &sdata->vif);
 536        }
 537
 538        sdata = rcu_dereference_protected(local->monitor_sdata,
 539                                          lockdep_is_held(&local->iflist_mtx));
 540        if (sdata)
 541                iterator(data, sdata->vif.addr, &sdata->vif);
 542
 543        mutex_unlock(&local->iflist_mtx);
 544}
 545EXPORT_SYMBOL_GPL(ieee80211_iterate_active_interfaces);
 546
 547void ieee80211_iterate_active_interfaces_atomic(
 548        struct ieee80211_hw *hw,
 549        void (*iterator)(void *data, u8 *mac,
 550                         struct ieee80211_vif *vif),
 551        void *data)
 552{
 553        struct ieee80211_local *local = hw_to_local(hw);
 554        struct ieee80211_sub_if_data *sdata;
 555
 556        rcu_read_lock();
 557
 558        list_for_each_entry_rcu(sdata, &local->interfaces, list) {
 559                switch (sdata->vif.type) {
 560                case NL80211_IFTYPE_MONITOR:
 561                case NL80211_IFTYPE_AP_VLAN:
 562                        continue;
 563                default:
 564                        break;
 565                }
 566                if (ieee80211_sdata_running(sdata))
 567                        iterator(data, sdata->vif.addr,
 568                                 &sdata->vif);
 569        }
 570
 571        sdata = rcu_dereference(local->monitor_sdata);
 572        if (sdata)
 573                iterator(data, sdata->vif.addr, &sdata->vif);
 574
 575        rcu_read_unlock();
 576}
 577EXPORT_SYMBOL_GPL(ieee80211_iterate_active_interfaces_atomic);
 578
 579/*
 580 * Nothing should have been stuffed into the workqueue during
 581 * the suspend->resume cycle. If this WARN is seen then there
 582 * is a bug with either the driver suspend or something in
 583 * mac80211 stuffing into the workqueue which we haven't yet
 584 * cleared during mac80211's suspend cycle.
 585 */
 586static bool ieee80211_can_queue_work(struct ieee80211_local *local)
 587{
 588        if (WARN(local->suspended && !local->resuming,
 589                 "queueing ieee80211 work while going to suspend\n"))
 590                return false;
 591
 592        return true;
 593}
 594
 595void ieee80211_queue_work(struct ieee80211_hw *hw, struct work_struct *work)
 596{
 597        struct ieee80211_local *local = hw_to_local(hw);
 598
 599        if (!ieee80211_can_queue_work(local))
 600                return;
 601
 602        queue_work(local->workqueue, work);
 603}
 604EXPORT_SYMBOL(ieee80211_queue_work);
 605
 606void ieee80211_queue_delayed_work(struct ieee80211_hw *hw,
 607                                  struct delayed_work *dwork,
 608                                  unsigned long delay)
 609{
 610        struct ieee80211_local *local = hw_to_local(hw);
 611
 612        if (!ieee80211_can_queue_work(local))
 613                return;
 614
 615        queue_delayed_work(local->workqueue, dwork, delay);
 616}
 617EXPORT_SYMBOL(ieee80211_queue_delayed_work);
 618
 619u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
 620                               struct ieee802_11_elems *elems,
 621                               u64 filter, u32 crc)
 622{
 623        size_t left = len;
 624        u8 *pos = start;
 625        bool calc_crc = filter != 0;
 626        DECLARE_BITMAP(seen_elems, 256);
 627
 628        bitmap_zero(seen_elems, 256);
 629        memset(elems, 0, sizeof(*elems));
 630        elems->ie_start = start;
 631        elems->total_len = len;
 632
 633        while (left >= 2) {
 634                u8 id, elen;
 635                bool elem_parse_failed;
 636
 637                id = *pos++;
 638                elen = *pos++;
 639                left -= 2;
 640
 641                if (elen > left) {
 642                        elems->parse_error = true;
 643                        break;
 644                }
 645
 646                switch (id) {
 647                case WLAN_EID_SSID:
 648                case WLAN_EID_SUPP_RATES:
 649                case WLAN_EID_FH_PARAMS:
 650                case WLAN_EID_DS_PARAMS:
 651                case WLAN_EID_CF_PARAMS:
 652                case WLAN_EID_TIM:
 653                case WLAN_EID_IBSS_PARAMS:
 654                case WLAN_EID_CHALLENGE:
 655                case WLAN_EID_RSN:
 656                case WLAN_EID_ERP_INFO:
 657                case WLAN_EID_EXT_SUPP_RATES:
 658                case WLAN_EID_HT_CAPABILITY:
 659                case WLAN_EID_HT_OPERATION:
 660                case WLAN_EID_VHT_CAPABILITY:
 661                case WLAN_EID_VHT_OPERATION:
 662                case WLAN_EID_MESH_ID:
 663                case WLAN_EID_MESH_CONFIG:
 664                case WLAN_EID_PEER_MGMT:
 665                case WLAN_EID_PREQ:
 666                case WLAN_EID_PREP:
 667                case WLAN_EID_PERR:
 668                case WLAN_EID_RANN:
 669                case WLAN_EID_CHANNEL_SWITCH:
 670                case WLAN_EID_EXT_CHANSWITCH_ANN:
 671                case WLAN_EID_COUNTRY:
 672                case WLAN_EID_PWR_CONSTRAINT:
 673                case WLAN_EID_TIMEOUT_INTERVAL:
 674                        if (test_bit(id, seen_elems)) {
 675                                elems->parse_error = true;
 676                                left -= elen;
 677                                pos += elen;
 678                                continue;
 679                        }
 680                        break;
 681                }
 682
 683                if (calc_crc && id < 64 && (filter & (1ULL << id)))
 684                        crc = crc32_be(crc, pos - 2, elen + 2);
 685
 686                elem_parse_failed = false;
 687
 688                switch (id) {
 689                case WLAN_EID_SSID:
 690                        elems->ssid = pos;
 691                        elems->ssid_len = elen;
 692                        break;
 693                case WLAN_EID_SUPP_RATES:
 694                        elems->supp_rates = pos;
 695                        elems->supp_rates_len = elen;
 696                        break;
 697                case WLAN_EID_FH_PARAMS:
 698                        elems->fh_params = pos;
 699                        elems->fh_params_len = elen;
 700                        break;
 701                case WLAN_EID_DS_PARAMS:
 702                        elems->ds_params = pos;
 703                        elems->ds_params_len = elen;
 704                        break;
 705                case WLAN_EID_CF_PARAMS:
 706                        elems->cf_params = pos;
 707                        elems->cf_params_len = elen;
 708                        break;
 709                case WLAN_EID_TIM:
 710                        if (elen >= sizeof(struct ieee80211_tim_ie)) {
 711                                elems->tim = (void *)pos;
 712                                elems->tim_len = elen;
 713                        } else
 714                                elem_parse_failed = true;
 715                        break;
 716                case WLAN_EID_IBSS_PARAMS:
 717                        elems->ibss_params = pos;
 718                        elems->ibss_params_len = elen;
 719                        break;
 720                case WLAN_EID_CHALLENGE:
 721                        elems->challenge = pos;
 722                        elems->challenge_len = elen;
 723                        break;
 724                case WLAN_EID_VENDOR_SPECIFIC:
 725                        if (elen >= 4 && pos[0] == 0x00 && pos[1] == 0x50 &&
 726                            pos[2] == 0xf2) {
 727                                /* Microsoft OUI (00:50:F2) */
 728
 729                                if (calc_crc)
 730                                        crc = crc32_be(crc, pos - 2, elen + 2);
 731
 732                                if (pos[3] == 1) {
 733                                        /* OUI Type 1 - WPA IE */
 734                                        elems->wpa = pos;
 735                                        elems->wpa_len = elen;
 736                                } else if (elen >= 5 && pos[3] == 2) {
 737                                        /* OUI Type 2 - WMM IE */
 738                                        if (pos[4] == 0) {
 739                                                elems->wmm_info = pos;
 740                                                elems->wmm_info_len = elen;
 741                                        } else if (pos[4] == 1) {
 742                                                elems->wmm_param = pos;
 743                                                elems->wmm_param_len = elen;
 744                                        }
 745                                }
 746                        }
 747                        break;
 748                case WLAN_EID_RSN:
 749                        elems->rsn = pos;
 750                        elems->rsn_len = elen;
 751                        break;
 752                case WLAN_EID_ERP_INFO:
 753                        elems->erp_info = pos;
 754                        elems->erp_info_len = elen;
 755                        break;
 756                case WLAN_EID_EXT_SUPP_RATES:
 757                        elems->ext_supp_rates = pos;
 758                        elems->ext_supp_rates_len = elen;
 759                        break;
 760                case WLAN_EID_HT_CAPABILITY:
 761                        if (elen >= sizeof(struct ieee80211_ht_cap))
 762                                elems->ht_cap_elem = (void *)pos;
 763                        else
 764                                elem_parse_failed = true;
 765                        break;
 766                case WLAN_EID_HT_OPERATION:
 767                        if (elen >= sizeof(struct ieee80211_ht_operation))
 768                                elems->ht_operation = (void *)pos;
 769                        else
 770                                elem_parse_failed = true;
 771                        break;
 772                case WLAN_EID_MESH_ID:
 773                        elems->mesh_id = pos;
 774                        elems->mesh_id_len = elen;
 775                        break;
 776                case WLAN_EID_MESH_CONFIG:
 777                        if (elen >= sizeof(struct ieee80211_meshconf_ie))
 778                                elems->mesh_config = (void *)pos;
 779                        else
 780                                elem_parse_failed = true;
 781                        break;
 782                case WLAN_EID_PEER_MGMT:
 783                        elems->peering = pos;
 784                        elems->peering_len = elen;
 785                        break;
 786                case WLAN_EID_PREQ:
 787                        elems->preq = pos;
 788                        elems->preq_len = elen;
 789                        break;
 790                case WLAN_EID_PREP:
 791                        elems->prep = pos;
 792                        elems->prep_len = elen;
 793                        break;
 794                case WLAN_EID_PERR:
 795                        elems->perr = pos;
 796                        elems->perr_len = elen;
 797                        break;
 798                case WLAN_EID_RANN:
 799                        if (elen >= sizeof(struct ieee80211_rann_ie))
 800                                elems->rann = (void *)pos;
 801                        else
 802                                elem_parse_failed = true;
 803                        break;
 804                case WLAN_EID_CHANNEL_SWITCH:
 805                        if (elen != sizeof(struct ieee80211_channel_sw_ie)) {
 806                                elem_parse_failed = true;
 807                                break;
 808                        }
 809                        elems->ch_switch_ie = (void *)pos;
 810                        break;
 811                case WLAN_EID_QUIET:
 812                        if (!elems->quiet_elem) {
 813                                elems->quiet_elem = pos;
 814                                elems->quiet_elem_len = elen;
 815                        }
 816                        elems->num_of_quiet_elem++;
 817                        break;
 818                case WLAN_EID_COUNTRY:
 819                        elems->country_elem = pos;
 820                        elems->country_elem_len = elen;
 821                        break;
 822                case WLAN_EID_PWR_CONSTRAINT:
 823                        if (elen != 1) {
 824                                elem_parse_failed = true;
 825                                break;
 826                        }
 827                        elems->pwr_constr_elem = pos;
 828                        break;
 829                case WLAN_EID_TIMEOUT_INTERVAL:
 830                        elems->timeout_int = pos;
 831                        elems->timeout_int_len = elen;
 832                        break;
 833                default:
 834                        break;
 835                }
 836
 837                if (elem_parse_failed)
 838                        elems->parse_error = true;
 839                else
 840                        set_bit(id, seen_elems);
 841
 842                left -= elen;
 843                pos += elen;
 844        }
 845
 846        if (left != 0)
 847                elems->parse_error = true;
 848
 849        return crc;
 850}
 851
 852void ieee802_11_parse_elems(u8 *start, size_t len,
 853                            struct ieee802_11_elems *elems)
 854{
 855        ieee802_11_parse_elems_crc(start, len, elems, 0, 0);
 856}
 857
 858void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata,
 859                               bool bss_notify)
 860{
 861        struct ieee80211_local *local = sdata->local;
 862        struct ieee80211_tx_queue_params qparam;
 863        int ac;
 864        bool use_11b, enable_qos;
 865        int aCWmin, aCWmax;
 866
 867        if (!local->ops->conf_tx)
 868                return;
 869
 870        if (local->hw.queues < IEEE80211_NUM_ACS)
 871                return;
 872
 873        memset(&qparam, 0, sizeof(qparam));
 874
 875        use_11b = (local->oper_channel->band == IEEE80211_BAND_2GHZ) &&
 876                 !(sdata->flags & IEEE80211_SDATA_OPERATING_GMODE);
 877
 878        /*
 879         * By default disable QoS in STA mode for old access points, which do
 880         * not support 802.11e. New APs will provide proper queue parameters,
 881         * that we will configure later.
 882         */
 883        enable_qos = (sdata->vif.type != NL80211_IFTYPE_STATION);
 884
 885        for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
 886                /* Set defaults according to 802.11-2007 Table 7-37 */
 887                aCWmax = 1023;
 888                if (use_11b)
 889                        aCWmin = 31;
 890                else
 891                        aCWmin = 15;
 892
 893                if (enable_qos) {
 894                        switch (ac) {
 895                        case IEEE80211_AC_BK:
 896                                qparam.cw_max = aCWmax;
 897                                qparam.cw_min = aCWmin;
 898                                qparam.txop = 0;
 899                                qparam.aifs = 7;
 900                                break;
 901                        /* never happens but let's not leave undefined */
 902                        default:
 903                        case IEEE80211_AC_BE:
 904                                qparam.cw_max = aCWmax;
 905                                qparam.cw_min = aCWmin;
 906                                qparam.txop = 0;
 907                                qparam.aifs = 3;
 908                                break;
 909                        case IEEE80211_AC_VI:
 910                                qparam.cw_max = aCWmin;
 911                                qparam.cw_min = (aCWmin + 1) / 2 - 1;
 912                                if (use_11b)
 913                                        qparam.txop = 6016/32;
 914                                else
 915                                        qparam.txop = 3008/32;
 916                                qparam.aifs = 2;
 917                                break;
 918                        case IEEE80211_AC_VO:
 919                                qparam.cw_max = (aCWmin + 1) / 2 - 1;
 920                                qparam.cw_min = (aCWmin + 1) / 4 - 1;
 921                                if (use_11b)
 922                                        qparam.txop = 3264/32;
 923                                else
 924                                        qparam.txop = 1504/32;
 925                                qparam.aifs = 2;
 926                                break;
 927                        }
 928                } else {
 929                        /* Confiure old 802.11b/g medium access rules. */
 930                        qparam.cw_max = aCWmax;
 931                        qparam.cw_min = aCWmin;
 932                        qparam.txop = 0;
 933                        qparam.aifs = 2;
 934                }
 935
 936                qparam.uapsd = false;
 937
 938                sdata->tx_conf[ac] = qparam;
 939                drv_conf_tx(local, sdata, ac, &qparam);
 940        }
 941
 942        if (sdata->vif.type != NL80211_IFTYPE_MONITOR &&
 943            sdata->vif.type != NL80211_IFTYPE_P2P_DEVICE) {
 944                sdata->vif.bss_conf.qos = enable_qos;
 945                if (bss_notify)
 946                        ieee80211_bss_info_change_notify(sdata,
 947                                                         BSS_CHANGED_QOS);
 948        }
 949}
 950
 951void ieee80211_sta_def_wmm_params(struct ieee80211_sub_if_data *sdata,
 952                                  const size_t supp_rates_len,
 953                                  const u8 *supp_rates)
 954{
 955        struct ieee80211_local *local = sdata->local;
 956        int i, have_higher_than_11mbit = 0;
 957
 958        /* cf. IEEE 802.11 9.2.12 */
 959        for (i = 0; i < supp_rates_len; i++)
 960                if ((supp_rates[i] & 0x7f) * 5 > 110)
 961                        have_higher_than_11mbit = 1;
 962
 963        if (local->oper_channel->band == IEEE80211_BAND_2GHZ &&
 964            have_higher_than_11mbit)
 965                sdata->flags |= IEEE80211_SDATA_OPERATING_GMODE;
 966        else
 967                sdata->flags &= ~IEEE80211_SDATA_OPERATING_GMODE;
 968
 969        ieee80211_set_wmm_default(sdata, true);
 970}
 971
 972u32 ieee80211_mandatory_rates(struct ieee80211_local *local,
 973                              enum ieee80211_band band)
 974{
 975        struct ieee80211_supported_band *sband;
        u32         enum         int i;

        sband = local->hw.band;
        if (sband)
                retur= 1;

        if (band == IEEE80211_BAND_2GHZ
                IEEE8021PERE_M_BAATORY_BHZ" class="sref">IEEE8021PERE_M_BAATORY_B>i;
        else
                IEEE8021PERE_M_BAATORY_AHZ" class="sref">IEEE8021PERE_M_BAATORY_A>i;

       *sband->                for (i = 0; i < sband->i++)
                if (i.flags &                       a>(sdata, ieee80211_tx+2mac804s>->IEEE80211_SDATA_OPERATINa href="+cod1_man78  );
59"L8959> 895        return }

void ieee80211nd_authams(struct ieee80211_sub_if_data *sdata,
 899                         10#L899                         u8 *size_t u8 *>,
10# 921                         const u8 *u8 *u8 *u8 *10#2974{
10# 893        struct ieee80211_local *local = sdata->local;
10#4893        struct );
510#"+>10# 975        struct ieee802mgmaata *10# 956        int 10# 957
10# 958       *_dk_11b" class="sredev_alf">_dk_" class="sref">ieee8de=local" class="sref">local->hw.10# 919                         0, sizea> *IEEE80211_SDATA_OPE101L900" id10"L910" class="line" name10"L9>10"L885        ia (!10" 871                return;
10" 962
10" 883        ieee8dk_11b" class="sredk_cal, local->hw.IEEE80211_SDATA_OPE1014900" id10"L914" class="line" name10"L9>10" 884
10" 875        ieee802mgmaataieee8dk_11b" class="sredk_calIEEE80211_SDATA_OPE1016900" id10"L916" class="line" name10"L9>10"6875        memset, 24 + 6;IEEE80211_SDATA_OPE1017900" id10"L917" class="line" name10"L9>10"7769        IEEE8021_IFTYPGM211_tx_queue_parf">IEEE8021_IFTYPGM2code=ta hr="sref">IEEE80211_SDATA_OPE1018900" id10"L918" class="line" name10"L9>10" 908                                          IEEE802S_IFTYAUTH11_tx_queue_parf">IEEE802S_IFTYAUTHcal<;IEEE80211_SDATA_OPE1019900" id10"L919" class="line" name10"L9>10" 969        cphify" class="sref">cphset->IEEE80211_SDATA_OPE102L900" id10"L920" class="line" name10"L9>10"L969        cphify" class="sref">cphset->sdata->vif.IEEE80211_SDATA_OPE1021900" id10"L921" class="line" name10"L9>10"9169        cphify" class="sref">cphset->IEEE80211_SDATA_OPE1022900" id10"L922" class="line" name10"L9>10"2769        IEEE80211_SDATA_OPE1023900" id10"L923" class="line" name10"L9>10" 873        IEEE80211_SDATA_OPE1024900" id10"L924" class="line" name10"L9>10" 864        bssdtrue" class="sredtatu>bssdtata = IEEE80211_SDATA_OPE1025900" id10"L925" class="line" name10"L9>10" 885        if (10" 886                cphify" class="sref">cphsetieee8dk_11b" class="sredk_cal IEEE80211_SDATA_OPE1027900" id10"L927" class="line" name10"L9>10" 957
10"8885        if (10" 939                IEEE8021CTL_PROTECTED11_tx_queue_parf">IEEE8021CTL_PROTECTEData<;IEEE80211_SDATA_OPE103L900" id10"L930" class="line" name10"L9>10"L939                ieee802wep_encrypault" class="sref">ieee802wep_encrypa" class="sref">ieee8de=local" class="sref">local, IEEE80211_SDATA_OPE1031900" id10"L931" class="line" name10"L9>10" 871              = IEEE80211_SDATA_OPE1032900" id10"L932" class="line" name10"L9>10"2769     /a>}
10"3957
10" 864        IEEE802SKB_C_BHZ" class="sref">IEEE802SKB_C_" class="sref">ieee8dk_11b" class="sredk_cal<)/a>->flags |= IEEE802TX_INTFL_DONT_ENCRYP2ata;
10" 875        ieee802tx_dk_11b" class="sref">ieee802tx_dk_" class="sref">ieee8de=sdata" class="sref">sdata, 10" 856}
10" 957
10" 858void (struct ieee80211_sub_if_data *sdata,
10" 919                                    const u8 *type10"L919                                 > *u8 *10" 871<>) {
10"2769        struct ieee80211_local *local = sdata->local;
10" 893        struct 10"4893        struct ieee802mgmaata *10" 935
10"6875        build d par.12 */
10"7769        IEEE8021_IFTYPGM211_tx_queue_parf">IEEE8021_IFTYPGM2code=t/>, type<)/a>;
10" 958       *initialize only.12 */
10" 969        initialize only.12 */
10"L969        cphify" class="sref">cphset->IEEE80211_SDATA_OPE1051900" id10"L951" class="line" name10"L9>10"9169        cphify" class="sref">cphset->sdata->vif.IEEE80211_SDATA_OPE1052900" id10"L952" class="line" name10"L9>10"2769        cphify" class="sref">cphset->IEEE80211_SDATA_OPE1053900" id10"L953" class="line" name10"L9>10" 873        u.deauth.reaso_bssdt/aa>u.dt dssoe.reaso_bssdt/12 */
10" 864        , IEEE80211_SDATA_OPE1055900" id10"L955" class="line" name10"L9>10" 935
10" 956        if (10" 967                _dk_11b" class="sredev_alf">_dk_" class="sref">ieee8de=local" class="sref">local->hw.10" 908                                    IEEE802DEAUTH_FRAME_LETION" class="sref">IEEE802DEAUTH_FRAME_LETata<;IEEE80211_SDATA_OPE1059900" id10"L959" class="line" name10"L9>10" 919                ia (!10"L908                        return;
10" 971
10" 952                ieee8dk_11b" class="sredk_cal, local->hw.IEEE802180211/util.10"3900" id10"L963" class="line" name10"L9>10"3957
10" 944                /opy>in d par.12 */
10" 965                cphify" class="sref">cphsetieee8dk_11b" class="sredk_cal IEEE802DEAUTH_FRAME_LETION" class="sref">IEEE802DEAUTH_FRAME_LETata<;/a>,
10" 946                       IEEE802DEAUTH_FRAME_LETION" class="sref">IEEE802DEAUTH_FRAME_LETata<;IEEE802180211/util.10"7900" id10"L967" class="line" name10"L9>10" 957
10" 908                if (sdata->vif.type != IEEE80211_SDATA_OPE1069900" id10"L969" class="line" name10"L9>10" 919                 !if (sdata->flags & IEEE802S_A_MFP_ENABLED11_tx_queue_parf">IEEE802S_A_MFP_ENABLEData<;/++)
10"L908                        IEEE802SKB_C_BHZ" class="sref">IEEE802SKB_C_" class="sref">ieee8dk_11b" class="sredk_cal<)/a>->flags++)
10" 921                             |= IEEE802TX_INTFL_DONT_ENCRYP2ata;
10" 962
10" 893                ieee802tx_dk_11b" class="sref">ieee802tx_dk_" class="sref">ieee8de=sdata" class="sref">sdata, 10" 944     /a>}
10"5856}

10" 957<   int ieee8021uild_preq_irates" class="sref">ieee8021uild_preq_ira" claa>(struct ieee80211_local *localu8 *10" 908                             const u8 *size_t 10" 919                             enum ieee80211_band bandu32 109L919                          st u8109 871<>) {
1092769        struct ieee80211_supported_band *sband;
109 873        u8 *109 864        size_t 109 885        int supp_rates_len1096875        u8;
1097885        int 1098885        int 1098869
109L864        sband = local->hw.band
109 921        if (sband)
109 952                retu = 0;
1093957
109 864        109 935
1096875        1097885        for (i = 0; i < sband->ia>) {
109 908                ior (ieee80211_tx+2mac804s>->/a> & 109 919                     ss_tinue= 0  skip ry_r.12 */
11#L899              = u8<) if (sband->i.11# 921     /a>}
110 962
110 883        supp_rates_len = 110 884
);
511#"+>11# 975     a> *11# 956     a> *supp_rates_len1107769        cphify" class="sref">cphsetsupp_rates_len<)/a>;
11# 958       *supp_rates_len1108869
11"L885     0  insert "request>in   matio_"    ispaustom IEs.12 */
111 921        if (111 952             dtatic    const u8.111 893             /a>       *111 894                      a>(111 965                      a>(111 946             }/ 0;
111 967                ieee802ietspl1mbit" class="sref">ieee802ietspl1m" class="sref">ieee80type" class="sreirype11" 908                                             111 919                                             ieee8fe   e_exfea_rates" class="srefe   e_exfea_ratnd<;/a>,
112L919                                             112 871              = cphify" class="sref">cphset 112 952                112 893                112 944     /a>}
112 935
1126875        supp_rates_len1127885        if (112 908             a> *11" 939             a> *11"L939                cphify" class="sref">cphset supp_rates_len11" 871              = 11"2769     /a>}
11"3957
11" 864        if (sband->band == IEEE80211_BAND_2GHZ) {
113 965             a> *113 946             a> *113 967             a> *1138769     /a>}
1138869
114L885     0  insert austom IEs.that go fe   e HT.12 */
114 921        if (114 952             dtatic    const u8.114 893             /a>       *114 894                      a>(114 965                      a>(114 946                    > = 114 967                    > = 114 908                      a>(114 939             }/ 0;
115L939                ieee802ietspl1mbit" class="sref">ieee802ietspl1m" class="sref">ieee80type" class="sreirype115 921                                             ieee8fe   e_hmset" class="srefe   e_hmtnd<;/a>,
115 952                                             115 893                cphify" class="sref">cphset 115 894                115 965                11" 956     /a>}
115 957
1158885        if (sband->11" 919                ieee802iet1uild_ht_capand" class="sref">ieee802iet1uild_ht_capsetsband->11"L908                                                sband->11" 971
11" 952     0  
11"3957<0  
11" 944<0  lo/a>-&scan_irates_. */
11" 965<0  1166962
1167952     0  
1168885        if (11" 919                11"L908                cphify" class="sref">cphset 11" 921                1172769     /a>}
1173957
117 864        if (sband->117 965                ieee802iet1uild_vht_capand" class="sref">ieee802iet1uild_vht_capsetsband->sband->117 957
11" 908        retu   11" 919}
119L919}
119 871<   struct ieee8021uild_probe_reqand" class="sref">ieee8021uild_probe_reqset(struct ieee80211_sub_if_data *sdata,
118 952                                       st u8 *u32 118 893             /a>                       a>(struct 118 894                                          const u8 *size_t 118 965                                          const u8 *size_t 118 946                    >>>>>>>>>>>>>>>>>>>   1197885<>) {
1198885        struct ieee80211_local *local = sdata->local;
1189885        struct 119L864        struct ieee802mgmaata *1199169        size_t 1192769        u8 *119 873        u8 *119 884
119 875        
1196875        len" class="srekmalf">set 1197885        ia (!119 908                retu   1198869
120L885     0  
12# 921<0  120 962<0  1203957<0  120 944<0  );
512#"+>12# 975        if (120 946             > *1207769     else 0;
120 908             > *1208869
121L864        ieee8021uild_preq_ira" clagt;localband
121 921                                        a> 121 962
121 873        ieee802probereq_gemset" class="sref">ieee802probereq_gem" clamp;&af (local->hwsdata->vif
121 894                                  a> 121 965                                  a> 121 956        ia (!121 967             goto    12" 908;
121 919        if (122L919             > *ieee802mgmaatasdata;
122 871              = cphify" class="sref">cphset->ata122 952                cphify" class="sref">cphset->122 893     /a>}
122 884
122 875      t IEEE802SKB_C_BHZ" class="sref">IEEE802SKB_C_" class="sref">ieee8dk_11b" class="sredk_cal<)/a>->flags  t IEEE802TX_INTFL_DONT_ENCRYP211_tx_queue_parf">IEEE802TX_INTFL_DONT_ENCRYP2ata;
1226962
1227885
122 958       *ieee8buflen" class="srebufata<)/a>;
1228869
12"L939        retu   12" 871}
123 962
12"3957ieee8021end_probe_req" claa>(struct ieee80211_sub_if_data *sdatau8 *123 894                              const u8 *size_t 123 965                              const u8 *size_t 123 946             >                u32 123 967                           a>(struct 1238769<>) {
1239885        struct 124L919}
1249169        ieee8021uild_probe_reqand" class="sref">ieee8021uild_probe_reqset *sdata *124 952                       >                124 893             /a>       >                124 894        if (124 965                if (124 946                    > = IEEE802SKB_C_BHZ" class="sref">IEEE802SKB_C_" class="sref">ieee8dk_11b" class="sredk_cal<)/a>->flags++)
124 967                    >       > = IEEE802TX_CTL_NO_CCK21PER11_tx_queue_parf">IEEE802TX_CTL_NO_CCK21PERcal;
124 908              = ieee802tx_dk_11b" class="sref">ieee802tx_dk_set *sdata;
124 939     /a>}
125L939}
125 971
125 952<   u32 ieee8021ta_gemory_rates" class="sref">ieee8021ta_gemory_ra" claa>(struct ieee80211_local *local,
125 893                         a>(struct ieee_802elemacal *125 894                         enum> = ieee8021e=band" class="sref">ieee8021e=bu32 bandu32 *125 965<>) {
12" 956     a>(struct ieee80211_suppor21e=bata *sband;
1257956     a>(struct 125 958       *size_t 12" 919        u32 supp_rae_t" class="sref">supp_racal;
12"L908     inruct 1269169        sband = local->hw.sbates" class="srebasbaata[band<]/a>;
126 962
126 893        if (sband<)/++)
126 894                retu1/a>;
126 935
1266875        sband->1267769        sband->126 958       *supp_rae_t" class="sref">supp_racal = 0;
12" 919        fif (supp_rates_len12"L908                    *12" 921                u8 *127 952             inruct 127 893                127 894                if (supp_rates_len127 965                        supp_racal[127 967                    > = 127 908                             /a>[supp_rates_len<]/a>;
127 919                128L919             > *128 971
128 952                if (128 893             /a>     continue/a>;
128 884
128 965                fif (128 946                    >   if (128 967                    >       > = supp_rae_t" class="sref">supp_racal  t 128 908                                if (128 919                                     a> * *129L908                     /a>}
129 921             /a>}
1292769     /a>}
129 873        retu   supp_rae_t" class="sref">supp_racal;
129 884}
129 935
1296875ieee80211_local *local1297885<>) {
129 958       *ieee8021eduppdionel" class="sref">ieee8021eduppdioset *local129 919        ieee802mod_tpt21edutrignel" class="sref">ieee802mod_tpt21edutrigset *localIEEE802TPT_LEDTRIG_FL_RADIOcal" class="sref">IEEE802TPT_LEDTRIG_FL_RADIOcal<)/a>;
130L919}
1309169        local->130 962
130 873        local->1304873        local<)/a>;
);
513#"+>13# 975}
1306962
1307769ieee802beconfigset(struct ieee80211_local *local1308769<>) {
1309885        struct ieee802de=hw" class="sref">ieee802decal *hw< =nmp;&af (local->hw;
131L864        struct ieee80211_sub_if_data *sdata;
131 921        struct 1312769     inruct 1313957
131 894<#ifdefnst 131 965        if (local->131 946             > *local->131 957
1318885        if (local->131 919                local->132L919             > *local<)/a>;
132 871                if (132 952                     > *local->132 893             /a>        retu   132 894             /a>}
132 965                if (132 946                    >goto    132 967                132 908                
1328869<0  13"L939<0  133 921<0  1332769     /a>}
13"3957<#endifa>}
133 894        
133 965        ia (!local->133 946             goto    133 957
1338894        
1338869<0  134L939<0  134 921<0  
134 962<0  1343957<0  1344873        local<)/a>;
134 965        if (134 946                local->134 967                     "upon resumr. This could be apsoftware issue " */
134 908                     "prior to suspend or a hardware issue.\n" */;
134 919                retu   1350769     /a>}
135 971
1352894        
135 873        localhw->135 884
135 875        
1356875        localhw->135 957
1358894        
13" 919         *localhw->;
136L919}
1369169        ieee8021eduppdionel" class="sref">ieee8021eduppdioset *local1362769        ieee802mod_tpt21edutrignel" class="sref">ieee802mod_tpt21edutrigset *local;
136 893             /a>                  *IEEE802TPT_LEDTRIG_FL_RADIOcal" class="sref">IEEE802TPT_LEDTRIG_FL_RADIOcal<, 0)/a>;
136 884
136 875        
1366875        sdatact local->1367885        i   sdata<)a>) {
136 908              = localsdata<)/a>;
136 919                if (13"L908                      = local->13" 921             /a>        137 952             /a>        ieee8de=sdata" class="sref">sdata<)/a>;
137 893             /a>}
137 894     /a>}
137 935
ieee8de=sdata" class="sref">sdatalocal->137 967                i   sdata->vif.137 908                    sdata->vif.137 919                    ieee8021">sd_runningnel" class="sref">ieee8021">sd_running" class="sref">ieee8de=sdata" class="sref">sdata<)/++)
138L919                        localsdata<)/a>;
1381894     /a>}
138 962
138 893        
1384873        local->138 965        ieee8dsdata" class="srefsdatalocal->138 946             enum> = ieee802fta_fta_rtes" class="srede=ieee802fta_fta_r946138 957
138 908                ia (!138 919                     continue/a>;
139L919}
139 921                
139 952                if (sdata->vif.139 893             /a>     continue/a>;
139 884
139 965                fif (IEEE802STA_NOTEXIS211_tx_queue_parf">IEEE802STA_NOTEXIS2946;
139 946                  f (139 967                    > = localsdata139 908                                           f (139 939     /a>}
140L919        local->140 971
1402894        
140 873        if (hw->IEEE802NUM_ACS11_tx_queue_parf">IEEE802NUM_ACSata<)a>) {
140 894                ieee8de=sdata" class="sref">sdatalocal->);
514#"+>140 965                        i   sdata->vif.140 946                    >    f (sdata->vif.140 967                    >    a (!ieee8021">sd_runningnel" class="sref">ieee8021">sd_running" class="sref">ieee8de=sdata" class="sref">sdata<)/++)
140 908                             continue/a>;
1409885;
141L919                        fif (IEEE802NUM_ACS11_tx_queue_parf">IEEE802NUM_ACSata141 921             /a>        >    f (localsdata141 952             /a>                         mp;&af (sdata->141 893             /a>}
141 894     /a>}
141 935
141 946        
1417769        ieee802de_confignel" class="sref">ieee802de_configset *local;
1418885;
141 919        ieee802configure_filterror" class="sref">ieee802configure_filterset *local<)/a>;
142L919}
142 871        
1422769        ieee8de=sdata" class="sref">sdatalocal->142 893             gt;u32 142 884
142 965                ia (!ieee8021">sd_runningnel" class="sref">ieee8021">sd_running" class="sref">ieee8de=sdata" class="sref">sdata<)/++)
142 946                    >continue/a>;
142 957
142 908                142 919                
143L919                          143 921             /a>          143 952             /a>          143 893             /a>          143 894             /a>          143 965                          143 946                          143 967                    >     143 908                          1439885;
144L919             switch i   sdata->vif.144 921             case == 144 952             /a>        
144 893             /a>                  *144 894             /a>                  *144 965                        sdata->144 946                        ieee802bss_info_chango_notifhify" class="sref">ieee802bss_info_chango_notifh" class="sref">ieee8de=sdata" class="sref">sdata144 967                        sdata->144 908                     break/a>;
144 919             case == 145L919                        ;
145 921             /a>        
145 952             case == 145 893             /a>        ;
145 884
145 965                        i   sdata->vif.145 946                    >           145 957
145 908                        
145 919             case == 146L919                        
146 921             /a>        >          146 952             /a>        ieee802bss_info_chango_notifhify" class="sref">ieee802bss_info_chango_notifh" class="sref">ieee8de=sdata" class="sref">sdata146 893             /a>     break/a>;
146 894             case == 146 965                     break/a>;
146 946             case == 146 967             case == 146 908             /a>        
146 919                     break/a>;
14"L908             case == 14" 921             /a>        ;
147 952             /a>     break/a>;
147 893             case == 147 894             case == 147 965             case == 147 967             /a>        ;
147 908                     break/a>;
147 919             /a>}
1480769     /a>}
148 971
1482769        ieee802recalc_plnel" class="sref">ieee802recalc_pl" class="sref">ieee8de=local" class="sref">local;
1483957
1484873        
148 965<0  148 946<0  148 957<0  148 908<0  1488869<0  1490769        ia/> *local->hw.IEEE802CONF_PS11_tx_queue_parf">IEEE802CONF_PS946<))a>) {
149 921               *ieee8de=sdata" class="sref">sdatalocal->149 952             /a>        i   sdata->vif.149 893             /a>             continue/a>;
149 894             /a>        ia (!sdata->149 965             /a>             continue/a>;
149 946;
149 967                    > = ieee8021end_nullfuncnel" class="sref">ieee8021end_nullfunc" class="sref">ieee8de=local" class="sref">localieee8de=sdata" class="sref">sdata;
149 908             /a>}
149 939     /a>}
150L919}
150 871        
1502769        local->150 873       *ieee8dsdata" class="srefsdatalocal->150 894             enum> = ieee802fta_fta_rtes" class="srede=ieee802fta_fta_r946);
515#"+>150 935
150 946                ia (!150 967                    >continue/a>;
1508885;
150 919                if (sdata->vif.151L919                     continue/a>;
151 971
151 952                fif (IEEE802STA_NOTEXIS211_tx_queue_parf">IEEE802STA_NOTEXIS2946;
151 893                    *151 894             /a>        localsdata151 965             /a>                             *151 946     /a>}
1517769        local->1518885;
151 919        
152L919        ieee8de=sdata" class="sref">sdatalocal->152 921                if (ieee8021">sd_runningnel" class="sref">ieee8021">sd_running" class="sref">ieee8de=sdata" class="sref">sdata<)/++)
152 952             /a>        ieee802enable_keysnel" class="sref">ieee802enable_keys" class="sref">ieee8de=sdata" class="sref">sdata<)/a>;
1523957
152 884<    152 965     f (local->1526875        ;
152 957
1528894        
1528869<0  153L919<0  153 921<0  153 952<0  
153 893<0  153 894<0  153 965<0  153 946<0  153 957<0  153 908        if (hw->IEEE802HW_AMPDU_AGGREGATIOTION" class="sref">IEEE802HW_AMPDU_AGGREGATIOTata<)a>) {
153 919                local->154L919}
154 921               *ieee8dsdata" class="srefsdatalocal->154 952             /a>        ieee8dsdata" class="srefsdata.154 893             /a>     a>.ieee8dsdata" class="srefsdata.154 894             /a>}
154 935
154 946                local->154 967     /a>}
1548885;
154 919        ieee802wake_queura_by_reasontes" class="srede=ieee802wake_queura_by_reason" class="sref">ieee8de=hw" class="sref">hw;
155L919                        IEEE802QUEUE_STOP_REASON2SUSPEND11_tx_queue_parf">IEEE802QUEUE_STOP_REASON2SUSPENData<)/a>;
155 971
1552894        
155 893<0  155 894<0  155 965<0  155 946        ia (!local->155 967             return 0/a>;
1558885;
155 919<#ifdef    156L919        
156 921      (!local->1562769        ;
156 873       *local->156 884
156 965     f (ieee8de=sdata" class="sref">sdatalocal->156 946             switchi   sdata->vif.156 967             case == 156 908             /a>        ieee8de=sdata" class="sref">sdata<)/a>;
156 919                     break/a>;
15"L908             case == 15" 921             /a>        ieee8de=sdata" class="sref">sdata<)/a>;
157 952             /a>     break/a>;
157 893             case == 157 894             /a>        ieee8de=sdata" class="sref">sdata<)/a>;
157 965             /a>     break/a>;
157 967             /a>     break/a>;
157 908             /a>}
157 939     /a>}
158L919}
158 921      (!local->1582769;
158 873       *local->1584873       *ieee8dsdata" class="srefsdatalocal->158 965               *ieee8dsdata" class="srefsdata<)/a>;
1586875        local->158 957<#elsea>;
1588875        ;
1588869<#endifa>;
1590769     return 0/a>;
159 921}
1592769;
159 893ieee802resume_disconnecttes" class="srede=ieee802resume_disconnect" clastruct    ieee802de=vif" class="sref">ieee802de=769vif<)an>
159 894<>) {
159 965     struct    ieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdata;
1596965     struct    ieee802de=local" class="sref">ieee802de=lo769local;
159 967     struct    ieee802kehify" class="sref">ieee802key769;
1598885;
159 939        if (vif<))an>
160L908             return/a>;
160 971
1602769        sdatact _to_de=sdata" class="sref">_to_de=sd" class="sref">ieee8de=vif" class="sref">vif<)/a>;
160 873       *localct sdata->local;
160 884
);
516#"+>1605939        if (local->160 946             return/a>;
160 957
160 908        if (vif->160 919             return/a>;
161L919}
161 921      (!sdata->IEEE802SDATA_DISCONNECT_RESUMEtes" class="sref">IEEE802SDATA_DISCONNECT_RESUMEcal;
1612769;
161 873       *local->1614873       *ieee8kehify" class="srekey769sdata->161 965             ss="sref">ieee8kehify" class="srekey769->;
1616875        local->1617769}
1618885ieee8f">ieee802resume_disconnecttes" class="srede=ieee802resume_disconnect" cl)/a>;
1619885;
162L919ieee802">_managorand" class="sref">ieee802">_managor769;
162 921                       enum> = ieee802fmpl_m"+cata" class="sref">ieee802smpl_m"+c769
162 952<>) {
162 873        if (162 894             *gt;ct 162 935
162 946                i*gt;  t IEEE802SMPS_AUTOMATIC11_tx_queue_parf">IEEE802SMPS_AUTOMATIC921) {
162 967             /a>        if (162 908             /a>             *gt;ct IEEE802SMPS_DYNAMIC11_tx_queue_parf">IEEE802SMPS_DYNAMICcal;
162 919                     elsea>;
163L919                             *gt;ct IEEE802SMPS_OFF11_tx_queue_parf">IEEE802SMPS_OFFcal;
163 921             /a>}
1632769;
163 893             return 1/a>;
163 894     /a>}
163 935
163 946     return 0/a>;
1637769}
1638885;
163 919ieee802recalc_smplnel" class="sref">ieee802recalc_smpl" clastruct    ieee802de=local" class="sref">ieee802de=lo769local<)an>
164L919<>) {
164 921     struct    ieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdata;
164 952     enum> = ieee802fmpl_m"+cata" class="sref">ieee802smpl_m"+c769ct IEEE802SMPS_OFF11_tx_queue_parf">IEEE802SMPS_OFFcal;
164 893     int    164 884
164 965     f (local->;
164 946;
164 967        
164 908<0  1648869<0  165L919<0  165 921<0  165 952<0  vi/
165 893<0  
165 894<0  
165 965<0  165 946;
1657769        ieee8de=sdata" class="sref">sdatalocal->165 908                ia (!ieee8021">sd_runningnel" class="sref">ieee8021">sd_running" class="sref">ieee8de=sdata" class="sref">sdata<)/++)
165 919                     continue/a>;
166L919                i   sdata->vif.166 921                     continue/a>;
166 952                i   sdata->vif.166 893             /a>     goto    166 884
166 965             ss="sref">ieee8counttes" class="srecount769ct sdata->;
166 946;
166 967                i   166 908             /a>        ct IEEE802SMPS_OFF11_tx_queue_parf">IEEE802SMPS_OFFcal;
166 919                     break/a>;
16"L908             /a>}
16" 921     /a>}
1672769;
167 873        if (  t local->
167 894             goto    167 935
1677769        local->ct ;
1678894        
167 919        ieee802hw_confignel" class="sref">ieee802hw_config" class="sref">ieee8de=local" class="sref">local;
168L919<    168 921      (!local->;
1682769}
1683957
1684873ieee802"d_in_listify" class="sref">ieee802"d_in_listset168 965<>) {
1686875     int    168 957
1688875        fif (168 919                if (169L919                     return a>.169 921     return a>.1692769}
1693957
169 894<0  
169 965<0  ieee802"e_split - split 
169 946<0  
169 957<0  169 908<0  1698869<0  170L919<0  170 921<0  170 952<0  170 893<0  
170 894<0  );
517#"+>170 965<0  ltion where the buffrr should be */
170 946<0  
170 957<0  170 908<0  1708869<0  171L919<0  171 921<0  171 952<0  171 893<0  
171 894<0  171 965<0  171 946<0  
171 957<0  171 908<0  1719885ieee802"e_splitify" class="sref">ieee802"e_splitset;
172L919                       const    172 921<>) {
1722769        1723957
172 894     while if (.ieee802"d_in_listify" class="sref">ieee802"d_in_listset172 965             ss="sref">ieee8polnel" class="srepol769;
172 946;
172 967     return a>.172 908}
1729885;
173L919ieee802"e_split_vesdorror" class="sref">ieee802"e_split_vesdorset173 921<>) {
1732769        1733957
173 894     while if (.
173 965             ss="sref">ieee8polnel" class="srepol769;
173 946;
173 967     return a>.173 908}
1739885;
174L919ieee802enable_rssi_reportlnel" class="sre_f">ieee802enable_rssi_reportlsetieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdata;
174 921                                         int    174 952             /a>                         int    174 893<>) {
1744873       *sdata174 935
174 946        ict sdata->vif.174 967             return/a>;
1748885;
174 919        
175L919<0  
175 921<0  
175 952<0  175 893<0  1754873       *sdata->175 965     f (sdata->175 946}
175 957
175 908ieee802enable_rssi_reportlnel" class="sref">ieee802enable_rssi_reportlsetieee802de=vif" class="sref">ieee802de=769vif;
175 919                                 int    176L919                                 int    176 921<>) {
176 952     struct    ieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdatact _to_de=sdata" class="sref">_to_de=sd" class="sref">ieee8de=vif" class="sref">vif<)/a>;
1763957
1764873       *176 965             ss="sref">ieee8rssi_min_tholdnel" class="srerssi_min_tholdata-&    176 946;
1767769        ieee802enable_rssi_reportlnel" class="sre_f">ieee802enable_rssi_reportlsetsdata176 908             /a>     a>             ss="sref">ieee8rssi_max_tholdnel" class="srerssi_max_thold *9<)/a>;
176 919}
177L919ieee802enable_rssi_reportlnel" class="sref">ieee802enable_rssi_reportlset<)/a>;
177 971
1772769ieee802disable_rssi_reportlnel" class="sref">ieee802disable_rssi_reportlsetieee802de=vif" class="sref">ieee802de=769vif<)an>
177 893<>) {
177 894     struct    ieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdatact _to_de=sdata" class="sref">_to_de=sd" class="sref">ieee8de=vif" class="sref">vif<)/a>;
177 935
ieee802enable_rssi_reportlnel" class="sre_f">ieee802enable_rssi_reportlsetsdata;
1777769}
1778885ieee802disable_rssi_reportlnel" class="sref">ieee802disable_rssi_reportlset<)/a>;
1779885;
178L919ieee802"e_build_ht_capror" class="sref">ieee802"e_build_ht_capsetieee802sta_ht_capror" class="sref">ieee802sta_ht_cap769;
178 921                           gt;178 952<>) {
178 873       *178 884
178 965     *gt;;
1786875     *gt;ieee802ht_capror" class="sref">ieee802ht_cap769<)/a>;
1787769        ieee802ht_capror" class="sref">ieee802ht_cap769<))/a>;
1788885;
178 919        
179L919        179 921      (!1792769        1793957
1794919        
179 965     *gt;179 946              ict 179 967             /a>     gt;IEEE802HT_AMPDU_PARM_DENSITY_SHIFTror" class="sref">IEEE802HT_AMPDU_PARM_DENSITY_SHIFT946<)/a>;
1798885;
179 919        
180L919        180 921      (!1802769;
1803919        
1804873       *;
);
518#"+>180 935
1806919        
1807769        1808885;
180 919        
181L919        181 971
1812769     return a>.181 893}
181 884
181 965<0t ieee802"e_build_vht_capror" class="sref">ieee802"e_build_vht_capsetieee802sta_vht_capror" class="sref">ieee802sta_vht_cap769;
181 946                                                        gt;181 957<>) {
1818919        1819885;
182L919     *gt;;
1821919     *gt;ieee802vht_capabilitiesvif" class="sref">ieee802dht_capabilities769<)/a>;
1822769        ieee802vht_capabilitiesvif" class="sref">ieee802dht_capabilities769<))/a>;
1823957
1824919        
182 965     f (1826875        1827769        1828885;
182 919        
183L919        183 921      (!1832769;
1833919     return a>.183 894}
183 935
183 946<0t ieee802"e_build_ht_operror" class="sref">ieee802"e_build_ht_opersetieee802sta_ht_capror" class="sref">ieee802sta_ht_cap769;
183 967             /a>            struct    ieee802channeocal" class="sref">ieee802channeo769;
183 908             /a>     a>     enuma   183 919                            gt;
184L919<>) {
184 921     struct    ieee802ht_operltioncal" class="sref">ieee802ht_operltion769;
184 952        
1843919     *gt;1844873     *gt;ieee802ht_operltioncal" class="sref">ieee802ht_operltion769<)/a>;
184 965     f (ieee802ht_operltioncal" class="sref">ieee802ht_operltion769< *)a>.1846875        184 967             /a>        ieee802frequency_to_channeocal" class="sref">ieee802frequency_to_channeoset184 908     switch i   184 919     case>ct 185L919                ct IEEE802HT_PARAM2CHA_SEC_BELOWror" class="sref">IEEE802HT_PARAM2CHA_SEC_BELOW769;
185 921             break/a>;
1852919     case>ct 1853919                ct IEEE802HT_PARAM2CHA_SEC_ABOVEror" class="sref">IEEE802HT_PARAM2CHA_SEC_ABOVE769;
1854873             break/a>;
185 965     case>ct 1856875     default:) {
185 967                ct IEEE802HT_PARAM2CHA_SEC_NONEror" class="sref">IEEE802HT_PARAM2CHA_SEC_NONE769;
185 908             break/a>;
185 919     /a>}
186L919        ict IEEE802HT_CAP_SUP_WIDTH_20_4L920" class="sref">IEEE802HT_CAP_SUP_WIDTH_20_4L769< mp;&&aa>}
186 921            186 952            1863919                ct IEEE802HT_PARAM2CHAN_WIDTH_ANY11_tx_queue_parf">IEEE802HT_PARAM2CHAN_WIDTH_ANY769;
186 884
186 965     f (ct ;
1866875        0x0000/a>;
186 957
186 908        
1868869<0  187L919        187 921      (!1872769;
1873919     return a>.ieee802ht_operltioncal" class="sref">ieee802ht_operltion769<)/a>;
187 894}
187 935
1877769<   ieee802ht_oper_to_channeo_typrtes" class="sref">ieee802ht_oper_to_channeo_typrsetieee802ht_operltioncal" class="sref">ieee802ht_operltion769
1878885<>) {
187 919     enuma   188L919;
188 921        i!gt;188 952             return a>.1883957
188 894     switch i   .IEEE802HT_PARAM2CHA_SEC_OFFSETror" class="sref">IEEE802HT_PARAM2CHA_SEC_OFFSET769<)a>) {
188 965     case>ct IEEE802HT_PARAM2CHA_SEC_NONEror" class="sref">IEEE802HT_PARAM2CHA_SEC_NONE769<:) {
188 946                188 967             break/a>;
1888965     case>ct IEEE802HT_PARAM2CHA_SEC_ABOVEror" class="sref">IEEE802HT_PARAM2CHA_SEC_ABOVE769<:) {
188 919                189L919             break/a>;
189 921     case>ct IEEE802HT_PARAM2CHA_SEC_BELOWror" class="sref">IEEE802HT_PARAM2CHA_SEC_BELOW769<:) {
189 952                1893919             break/a>;
1894919     default:) {
189 965                189 946     /a>}
189 957
1898965     return a>.189 919}
190L919;
190 921ieee802add_srltes_irtes" class="sref">ieee802add_srltes_irsetieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdata;
190 952             /a>         struct    1903919                         enuma   ieee802bandnel" class="sref">ieee802band769
1904873<>) {
);
519#"+>190 965     struct    ieee802locaocal" class="sref">ieee802locao769ct sdata->1906919     struct    ieee802supported2bandnel" class="sref">ieee802supported2band769;
1907769     int    1908919        190 919        sdata->vif.191L919;
191 921      (!1912769        1913919        ict 1914873                191 935
191 946        ict 191 967             return -   1918885;
191 919        192L919     *gt;1921919     *gt;1922769     for /gt;1923919                1924873                ict 192 965                        192 946                192 967             *gt;1928919     /a>}
1929885;
193L919     return 0;) {
193 921}
1932769;
1933919ieee802add_ext_srltes_irtes" class="sref">ieee802add_ext_srltes_irsetieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdata;
1934873                             struct    193 965                             enuma   ieee802bandnel" class="sref">ieee802band769
193 946<>) {
193 967     struct    ieee802locaocal" class="sref">ieee802locao769ct sdata->193 908     struct    ieee802supported2bandnel" class="sref">ieee802supported2band769;
193 919     int    194L919        194 921      (!sdata->vif.1942769;
1943919      (!1944873     gt;194 965        ict 194 946                194 967     elsea>;
194 908             gt;1949885;
195L919        ict 195 921             return -   1952769;
1953919        ict 1954873                195 965             *gt;195 946             *gt;195 967             for /gt;195 908                        195 919                        ict 196L919                                196 921                        196 952                     *gt;1963919             /a>}
1964873     /a>}
196 965     return 0;) {
1966875}
196 957
196 908ieee802ave_rssinel" class="sref">ieee802ave_rssisetieee802de=vif" class="sref">ieee802de=769vif<)an>
1968869<>) {
197L919     struct    ieee802sub_if_e=sdata" class="sref">ieee802sub_if_e=sd769sdatagt;_to_de=sdata" class="sref">_to_de=sdsetvif<);) {
197 921     struct    ieee802">_managednel" class="sref">ieee802">_managed769mp;&af (sdata->1972769;
1973919        ict sdata->vif.1974873                
197 965             return 0;) {
1977965     return gt;1978885}
197 919<   ieee802ave_rssinel" class="sref">ieee802ave_rssiset<);) {
198L919<


The originao LXR software by the { LXR s="cunity769lxr@s="ux.novif lxr.s="ux.no kindly hosted by { Redpill L="pro AS769