From: Kalle Valo <kvalo@qca.qualcomm.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] ath10k.git updated to 3.9.0-rc8-wl-ath10k
Date: Fri, 26 Apr 2013 10:34:06 +0300 [thread overview]
Message-ID: <877gjpvj81.fsf@kamboji.qca.qualcomm.com> (raw)
Hi,
I just merged latest wireless-testing to ath10k.git. The mac80211
channel API had changed and I had to change ath10k accordingly, please
review my changes.
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index f64c2fc..9cb63cc 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -238,15 +238,15 @@ static int ath10k_vdev_start(struct ath10k_vif *arvif)
{
struct ath10k *ar = arvif->ar;
struct ieee80211_conf *conf = &ar->hw->conf;
- struct ieee80211_channel *channel = conf->channel;
+ struct ieee80211_channel *channel = conf->chandef.chan;
struct wmi_vdev_start_request_arg arg = {
.vdev_id = arvif->vdev_id,
.channel = {
.freq = channel->center_freq,
- .band_center_freq1 = band_center_freq(conf->channel,
- conf->channel_type),
- .mode = chan_to_phymode(conf->channel,
- conf->channel_type),
+ .band_center_freq1 = band_center_freq(channel,
+ cfg80211_get_chandef_type(&conf->chandef)),
+ .mode = chan_to_phymode(channel,
+ cfg80211_get_chandef_type(&conf->chandef)),
.min_power = channel->max_power * 3,
.max_power = channel->max_power * 4,
.max_reg_power = channel->max_reg_power * 4,
@@ -316,18 +316,17 @@ unlock:
static int ath10k_monitor_start(struct ath10k *ar, int vdev_id)
{
- struct ieee80211_channel *channel = ar->hw->conf.channel;
- struct ieee80211_conf *conf = &ar->hw->conf;
+ struct ieee80211_channel *channel = ar->hw->conf.chandef.chan;
struct wmi_vdev_start_request_arg arg = {
.vdev_id = vdev_id,
.channel = {
.freq = channel->center_freq,
- .band_center_freq1 = band_center_freq(conf->channel,
- conf->channel_type),
+ .band_center_freq1 = band_center_freq(channel,
+ cfg80211_get_chandef_type(&ar->hw->conf.chandef)),
/* TODO setup this dynamically, what in case we
don't have any vifs? */
- .mode = chan_to_phymode(conf->channel,
- conf->channel_type),
+ .mode = chan_to_phymode(channel,
+ cfg80211_get_chandef_type(&ar->hw->conf.chandef)),
.min_power = channel->max_power * 3,
.max_power = channel->max_power * 4,
.max_reg_power = channel->max_reg_power * 4,
@@ -622,7 +621,7 @@ static void ath10k_peer_assoc_h_crypto(struct ath10k *ar,
const u8 *rsnie = NULL;
const u8 *wpaie = NULL;
- bss = cfg80211_get_bss(ar->hw->wiphy, ar->hw->conf.channel,
+ bss = cfg80211_get_bss(ar->hw->wiphy, ar->hw->conf.chandef.chan,
info->bssid, NULL, 0, 0, 0);
if (bss) {
const struct cfg80211_bss_ies *ies;
@@ -662,8 +661,8 @@ static void ath10k_peer_assoc_h_rates(struct ath10k *ar,
u32 ratemask;
int i;
- sband = ar->hw->wiphy->bands[ar->hw->conf.channel->band];
- ratemask = sta->supp_rates[ar->hw->conf.channel->band];
+ sband = ar->hw->wiphy->bands[ar->hw->conf.chandef.chan->band];
+ ratemask = sta->supp_rates[ar->hw->conf.chandef.chan->band];
rates = sband->bitrates;
rateset->num_rates = 0;
@@ -776,7 +775,7 @@ static void ath10k_peer_assoc_h_phymode(struct ath10k *ar,
{
enum wmi_phy_mode phymode = MODE_UNKNOWN;
- switch (ar->hw->conf.channel->band) {
+ switch (ar->hw->conf.chandef.chan->band) {
case IEEE80211_BAND_2GHZ:
if (sta->ht_cap.ht_supported) {
if (sta->bandwidth == IEEE80211_STA_RX_BW_40)
@@ -1324,8 +1323,8 @@ static int ath10k_config(struct ieee80211_hw *hw, u32 changed)
if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {
ath10k_dbg(ATH10K_DBG_MAC, "Config channel %d mhz\n",
- conf->channel->center_freq);
- rcu_assign_pointer(ar->rx_channel, conf->channel);
+ conf->chandef.chan->center_freq);
+ rcu_assign_pointer(ar->rx_channel, conf->chandef.chan);
}
if (changed & IEEE80211_CONF_CHANGE_PS) {
next reply other threads:[~2013-04-26 7:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 7:34 Kalle Valo [this message]
2013-04-26 7:41 ` [ath9k-devel] ath10k.git updated to 3.9.0-rc8-wl-ath10k Markowski Bartosz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gjpvj81.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@qca.qualcomm.com \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.