cfg.c (a0de1ca383c77a1ae123d7c0cea45e327b61876a) cfg.c (bd718fc11d5b184701e7fd8302033e31a3a03ba8)
1/*
2 * mac80211 configuration hooks for cfg80211
3 *
4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
5 * Copyright 2013-2015 Intel Mobile Communications GmbH
6 * Copyright (C) 2015-2017 Intel Deutschland GmbH
1/*
2 * mac80211 configuration hooks for cfg80211
3 *
4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
5 * Copyright 2013-2015 Intel Mobile Communications GmbH
6 * Copyright (C) 2015-2017 Intel Deutschland GmbH
7 * Copyright (C) 2018 Intel Corporation
7 * Copyright (C) 2018-2019 Intel Corporation
8 *
9 * This file is GPLv2 as found in COPYING.
10 */
11
12#include <linux/ieee80211.h>
13#include <linux/nl80211.h>
14#include <linux/rtnetlink.h>
15#include <linux/slab.h>

--- 1447 unchanged lines hidden (view full) ---

1463 sta->sta.txpwr.type = params->txpwr.type;
1464 if (params->txpwr.type == NL80211_TX_POWER_LIMITED)
1465 sta->sta.txpwr.power = params->txpwr.power;
1466 ret = drv_sta_set_txpwr(local, sdata, sta);
1467 if (ret)
1468 return ret;
1469 }
1470
8 *
9 * This file is GPLv2 as found in COPYING.
10 */
11
12#include <linux/ieee80211.h>
13#include <linux/nl80211.h>
14#include <linux/rtnetlink.h>
15#include <linux/slab.h>

--- 1447 unchanged lines hidden (view full) ---

1463 sta->sta.txpwr.type = params->txpwr.type;
1464 if (params->txpwr.type == NL80211_TX_POWER_LIMITED)
1465 sta->sta.txpwr.power = params->txpwr.power;
1466 ret = drv_sta_set_txpwr(local, sdata, sta);
1467 if (ret)
1468 return ret;
1469 }
1470
1471 if (params->supported_rates) {
1471 if (params->supported_rates && params->supported_rates_len) {
1472 ieee80211_parse_bitrates(&sdata->vif.bss_conf.chandef,
1473 sband, params->supported_rates,
1474 params->supported_rates_len,
1475 &sta->sta.supp_rates[sband->band]);
1476 }
1477
1478 if (params->ht_capa)
1479 ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband,

--- 2562 unchanged lines hidden ---
1472 ieee80211_parse_bitrates(&sdata->vif.bss_conf.chandef,
1473 sband, params->supported_rates,
1474 params->supported_rates_len,
1475 &sta->sta.supp_rates[sband->band]);
1476 }
1477
1478 if (params->ht_capa)
1479 ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband,

--- 2562 unchanged lines hidden ---