* [ath9k-devel] ath10k.git updated to 3.9.0-rc8-wl-ath10k
@ 2013-04-26 7:34 Kalle Valo
2013-04-26 7:41 ` Markowski Bartosz
0 siblings, 1 reply; 2+ messages in thread
From: Kalle Valo @ 2013-04-26 7:34 UTC (permalink / raw)
To: ath9k-devel
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) {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [ath9k-devel] ath10k.git updated to 3.9.0-rc8-wl-ath10k
2013-04-26 7:34 [ath9k-devel] ath10k.git updated to 3.9.0-rc8-wl-ath10k Kalle Valo
@ 2013-04-26 7:41 ` Markowski Bartosz
0 siblings, 0 replies; 2+ messages in thread
From: Markowski Bartosz @ 2013-04-26 7:41 UTC (permalink / raw)
To: ath9k-devel
On 26/04/13 09:34, Kalle Valo wrote:
> 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.
>
Looks good for me.
-Bartosz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-26 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 7:34 [ath9k-devel] ath10k.git updated to 3.9.0-rc8-wl-ath10k Kalle Valo
2013-04-26 7:41 ` Markowski Bartosz
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.