| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531 |
- --- a/core.c
- +++ b/core.c
- @@ -718,8 +718,8 @@ static void mwl_chnl_switch_event(struct
- vif = container_of((void *)mwl_vif, struct ieee80211_vif,
- drv_priv);
-
- - if (vif->csa_active)
- - ieee80211_csa_finish(vif);
- + if (vif->bss_conf.csa_active)
- + ieee80211_csa_finish(vif, 0);
- }
- spin_unlock_bh(&priv->vif_lock);
-
- --- a/debugfs.c
- +++ b/debugfs.c
- @@ -550,9 +550,9 @@ static ssize_t mwl_debugfs_vif_read(stru
- switch (vif->type) {
- case NL80211_IFTYPE_AP:
- len += scnprintf(p + len, size - len, "type: ap\n");
- - memcpy(ssid, vif->bss_conf.ssid,
- - vif->bss_conf.ssid_len);
- - ssid[vif->bss_conf.ssid_len] = 0;
- + memcpy(ssid, vif->cfg.ssid,
- + vif->cfg.ssid_len);
- + ssid[vif->cfg.ssid_len] = 0;
- len += scnprintf(p + len, size - len,
- "ssid: %s\n", ssid);
- len += scnprintf(p + len, size - len,
- @@ -574,8 +574,8 @@ static ssize_t mwl_debugfs_vif_read(stru
- "type: unknown\n");
- break;
- }
- - if (vif->chanctx_conf) {
- - chan_def = &vif->chanctx_conf->def;
- + if (vif->bss_conf.chanctx_conf) {
- + chan_def = &vif->bss_conf.chanctx_conf->def;
- len += scnprintf(p + len, size - len,
- "channel: %d: width: %d\n",
- chan_def->chan->hw_value,
- @@ -648,18 +648,18 @@ static ssize_t mwl_debugfs_sta_read(stru
- sta_info->wds ? "true" : "false",
- sta_info->ba_hist.enable ? "enable" : "disable",
- sta_info->is_amsdu_allowed ? sta_info->amsdu_ctrl.cap : 0 ,
- - sta->ht_cap.ht_supported ? sta->ht_cap.cap : 0,
- - sta->ht_cap.ht_supported ? sta->ht_cap.ampdu_factor : 0,
- - sta->ht_cap.ht_supported ? sta->ht_cap.ampdu_density : 0,
- - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[0] : 0,
- - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[1] : 0,
- - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[2] : 0,
- - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[3] : 0,
- - sta->vht_cap.vht_supported ? sta->vht_cap.cap : 0,
- - sta->vht_cap.vht_supported ? sta->vht_cap.vht_mcs.rx_mcs_map : 0,
- - sta->vht_cap.vht_supported ? sta->vht_cap.vht_mcs.tx_mcs_map : 0,
- - sta->bandwidth,
- - sta->rx_nss,
- + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.cap : 0,
- + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.ampdu_factor : 0,
- + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.ampdu_density : 0,
- + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[0] : 0,
- + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[1] : 0,
- + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[2] : 0,
- + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[3] : 0,
- + sta->deflink.vht_cap.vht_supported ? sta->deflink.vht_cap.cap : 0,
- + sta->deflink.vht_cap.vht_supported ? sta->deflink.vht_cap.vht_mcs.rx_mcs_map : 0,
- + sta->deflink.vht_cap.vht_supported ? sta->deflink.vht_cap.vht_mcs.tx_mcs_map : 0,
- + sta->deflink.bandwidth,
- + sta->deflink.rx_nss,
- sta->tdls,
- sta->tdls_initiator,
- sta->wme,
- @@ -1210,7 +1210,7 @@ static ssize_t mwl_debugfs_dfs_radar_wri
- struct mwl_priv *priv = (struct mwl_priv *)file->private_data;
-
- wiphy_info(priv->hw->wiphy, "simulate radar detected\n");
- - ieee80211_radar_detected(priv->hw);
- + ieee80211_radar_detected(priv->hw, NULL);
-
- return count;
- }
- --- a/hif/fwcmd.c
- +++ b/hif/fwcmd.c
- @@ -633,11 +633,15 @@ einval:
- }
-
- static int mwl_fwcmd_set_ap_beacon(struct mwl_priv *priv,
- - struct mwl_vif *mwl_vif,
- - struct ieee80211_bss_conf *bss_conf)
- + struct ieee80211_vif *vif)
- {
- struct hostcmd_cmd_ap_beacon *pcmd;
- struct ds_params *phy_ds_param_set;
- + struct mwl_vif *mwl_vif;
- + struct ieee80211_bss_conf *bss_conf;
- +
- + mwl_vif = mwl_dev_get_vif(vif);
- + bss_conf = &vif->bss_conf;
-
- /* wmm structure of start command is defined less one byte,
- * due to following field country is not used, add byte one
- @@ -664,7 +668,7 @@ static int mwl_fwcmd_set_ap_beacon(struc
- pcmd->cmd_hdr.macid = mwl_vif->macid;
-
- ether_addr_copy(pcmd->start_cmd.sta_mac_addr, mwl_vif->bssid);
- - memcpy(pcmd->start_cmd.ssid, bss_conf->ssid, bss_conf->ssid_len);
- + memcpy(pcmd->start_cmd.ssid, vif->cfg.ssid, vif->cfg.ssid_len);
- if (priv->chip_type == MWL8997)
- ether_addr_copy(pcmd->start_cmd.bssid, mwl_vif->bssid);
- pcmd->start_cmd.bss_type = 1;
- @@ -674,7 +678,7 @@ static int mwl_fwcmd_set_ap_beacon(struc
- phy_ds_param_set = &pcmd->start_cmd.phy_param_set.ds_param_set;
- phy_ds_param_set->elem_id = WLAN_EID_DS_PARAMS;
- phy_ds_param_set->len = sizeof(phy_ds_param_set->current_chnl);
- - phy_ds_param_set->current_chnl = bss_conf->chandef.chan->hw_value;
- + phy_ds_param_set->current_chnl = bss_conf->chanreq.oper.chan->hw_value;
-
- pcmd->start_cmd.probe_delay = cpu_to_le16(10);
- pcmd->start_cmd.cap_info = cpu_to_le16(mwl_vif->beacon_info.cap_info);
- @@ -768,9 +772,9 @@ static int mwl_fwcmd_set_country_code(st
- bool enable = false;
-
- if (b_inf->ie_country_ptr) {
- - if (bss_conf->chandef.chan->band == NL80211_BAND_2GHZ)
- + if (bss_conf->chanreq.oper.chan->band == NL80211_BAND_2GHZ)
- a_band = false;
- - else if (bss_conf->chandef.chan->band == NL80211_BAND_5GHZ)
- + else if (bss_conf->chanreq.oper.chan->band == NL80211_BAND_5GHZ)
- a_band = true;
- else
- return -EINVAL;
- @@ -2092,7 +2096,7 @@ int mwl_fwcmd_set_beacon(struct ieee8021
- if (mwl_fwcmd_set_wsc_ie(hw, b_inf->ie_wsc_len, b_inf->ie_wsc_ptr))
- goto err;
-
- - if (mwl_fwcmd_set_ap_beacon(priv, mwl_vif, &vif->bss_conf))
- + if (mwl_fwcmd_set_ap_beacon(priv, vif))
- goto err;
-
- if (b_inf->cap_info & WLAN_CAPABILITY_SPECTRUM_MGMT)
- @@ -2154,38 +2158,38 @@ int mwl_fwcmd_set_new_stn_add(struct iee
- ether_addr_copy(pcmd->mac_addr, sta->addr);
-
- if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ)
- - rates = sta->supp_rates[NL80211_BAND_2GHZ];
- + rates = sta->deflink.supp_rates[NL80211_BAND_2GHZ];
- else
- - rates = sta->supp_rates[NL80211_BAND_5GHZ] << 5;
- + rates = sta->deflink.supp_rates[NL80211_BAND_5GHZ] << 5;
- pcmd->peer_info.legacy_rate_bitmap = cpu_to_le32(rates);
-
- - if (sta->ht_cap.ht_supported) {
- + if (sta->deflink.ht_cap.ht_supported) {
- int i;
-
- for (i = 0; i < 4; i++) {
- - if (i < sta->rx_nss) {
- + if (i < sta->deflink.rx_nss) {
- pcmd->peer_info.ht_rates[i] =
- - sta->ht_cap.mcs.rx_mask[i];
- + sta->deflink.ht_cap.mcs.rx_mask[i];
- } else {
- pcmd->peer_info.ht_rates[i] = 0;
- }
- }
- - pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->ht_cap.cap);
- + pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->deflink.ht_cap.cap);
- pcmd->peer_info.mac_ht_param_info =
- - (sta->ht_cap.ampdu_factor & 3) |
- - ((sta->ht_cap.ampdu_density & 7) << 2);
- + (sta->deflink.ht_cap.ampdu_factor & 3) |
- + ((sta->deflink.ht_cap.ampdu_density & 7) << 2);
- }
-
- - if (sta->vht_cap.vht_supported) {
- + if (sta->deflink.vht_cap.vht_supported) {
- u32 rx_mcs_map_mask = 0;
-
- - rx_mcs_map_mask = ((0x0000FFFF) >> (sta->rx_nss * 2))
- - << (sta->rx_nss * 2);
- + rx_mcs_map_mask = ((0x0000FFFF) >> (sta->deflink.rx_nss * 2))
- + << (sta->deflink.rx_nss * 2);
- pcmd->peer_info.vht_max_rx_mcs =
- cpu_to_le32((*((u32 *)
- - &sta->vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
- - pcmd->peer_info.vht_cap = cpu_to_le32(sta->vht_cap.cap);
- - pcmd->peer_info.vht_rx_channel_width = sta->bandwidth;
- + &sta->deflink.vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
- + pcmd->peer_info.vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap);
- + pcmd->peer_info.vht_rx_channel_width = sta->deflink.bandwidth;
- }
-
- pcmd->is_qos_sta = sta->wme;
- @@ -2241,38 +2245,38 @@ int mwl_fwcmd_set_new_stn_add_sc4(struct
- ether_addr_copy(pcmd->mac_addr, sta->addr);
-
- if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ)
- - rates = sta->supp_rates[NL80211_BAND_2GHZ];
- + rates = sta->deflink.supp_rates[NL80211_BAND_2GHZ];
- else
- - rates = sta->supp_rates[NL80211_BAND_5GHZ] << 5;
- + rates = sta->deflink.supp_rates[NL80211_BAND_5GHZ] << 5;
- pcmd->peer_info.legacy_rate_bitmap = cpu_to_le32(rates);
-
- - if (sta->ht_cap.ht_supported) {
- + if (sta->deflink.ht_cap.ht_supported) {
- int i;
-
- for (i = 0; i < 4; i++) {
- - if (i < sta->rx_nss) {
- + if (i < sta->deflink.rx_nss) {
- pcmd->peer_info.ht_rates[i] =
- - sta->ht_cap.mcs.rx_mask[i];
- + sta->deflink.ht_cap.mcs.rx_mask[i];
- } else {
- pcmd->peer_info.ht_rates[i] = 0;
- }
- }
- - pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->ht_cap.cap);
- + pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->deflink.ht_cap.cap);
- pcmd->peer_info.mac_ht_param_info =
- - (sta->ht_cap.ampdu_factor & 3) |
- - ((sta->ht_cap.ampdu_density & 7) << 2);
- + (sta->deflink.ht_cap.ampdu_factor & 3) |
- + ((sta->deflink.ht_cap.ampdu_density & 7) << 2);
- }
-
- - if (sta->vht_cap.vht_supported) {
- + if (sta->deflink.vht_cap.vht_supported) {
- u32 rx_mcs_map_mask = 0;
-
- - rx_mcs_map_mask = ((0x0000FFFF) >> (sta->rx_nss * 2))
- - << (sta->rx_nss * 2);
- + rx_mcs_map_mask = ((0x0000FFFF) >> (sta->deflink.rx_nss * 2))
- + << (sta->deflink.rx_nss * 2);
- pcmd->peer_info.vht_max_rx_mcs =
- cpu_to_le32((*((u32 *)
- - &sta->vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
- - pcmd->peer_info.vht_cap = cpu_to_le32(sta->vht_cap.cap);
- - pcmd->peer_info.vht_rx_channel_width = sta->bandwidth;
- + &sta->deflink.vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
- + pcmd->peer_info.vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap);
- + pcmd->peer_info.vht_rx_channel_width = sta->deflink.bandwidth;
- }
-
- pcmd->is_qos_sta = sta->wme;
- @@ -2789,9 +2793,9 @@ int mwl_fwcmd_create_ba(struct ieee80211
- pcmd->ba_info.create_params.flags = cpu_to_le32(ba_flags);
- pcmd->ba_info.create_params.queue_id = stream->idx;
- pcmd->ba_info.create_params.param_info =
- - (stream->sta->ht_cap.ampdu_factor &
- + (stream->sta->deflink.ht_cap.ampdu_factor &
- IEEE80211_HT_AMPDU_PARM_FACTOR) |
- - ((stream->sta->ht_cap.ampdu_density << 2) &
- + ((stream->sta->deflink.ht_cap.ampdu_density << 2) &
- IEEE80211_HT_AMPDU_PARM_DENSITY);
- if (direction == BA_FLAG_DIRECTION_UP) {
- pcmd->ba_info.create_params.reset_seq_no = 0;
- @@ -2801,9 +2805,9 @@ int mwl_fwcmd_create_ba(struct ieee80211
- pcmd->ba_info.create_params.current_seq = cpu_to_le16(0);
- }
- if (priv->chip_type == MWL8964 &&
- - stream->sta->vht_cap.vht_supported) {
- + stream->sta->deflink.vht_cap.vht_supported) {
- pcmd->ba_info.create_params.vht_rx_factor =
- - cpu_to_le32((stream->sta->vht_cap.cap &
- + cpu_to_le32((stream->sta->deflink.vht_cap.cap &
- IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK) >>
- IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT);
- }
- --- a/hif/pcie/8864/tx.c
- +++ b/hif/pcie/8864/tx.c
- @@ -478,7 +478,7 @@ static void pcie_non_pfu_tx_done(struct
- } else
- memmove(dma_data->data - hdrlen, &dma_data->wh, hdrlen);
- skb_pull(done_skb, sizeof(*dma_data) - hdrlen);
- - ieee80211_tx_status(priv->hw, done_skb);
- + ieee80211_tx_status_skb(priv->hw, done_skb);
- next:
- tx_hndl = tx_hndl->pnext;
- tx_desc = tx_hndl->pdesc;
- @@ -730,7 +730,7 @@ void pcie_8864_tx_xmit(struct ieee80211_
- index = SYSADPT_TX_WMM_QUEUES - index - 1;
- txpriority = index;
-
- - if (sta && sta->ht_cap.ht_supported &&
- + if (sta && sta->deflink.ht_cap.ht_supported &&
- !(xmitcontrol & EAGLE_TXD_XMITCTRL_USE_MC_RATE) &&
- ieee80211_is_data_qos(wh->frame_control)) {
- tid = qos & 0xf;
- @@ -912,4 +912,4 @@ void pcie_8864_tx_del_sta_amsdu_pkts(str
- }
- }
- spin_unlock_bh(&sta_info->amsdu_lock);
- -}
- \ No newline at end of file
- +}
- --- a/hif/pcie/8964/tx_ndp.c
- +++ b/hif/pcie/8964/tx_ndp.c
- @@ -287,7 +287,7 @@ static inline int pcie_tx_skb_ndp(struct
- skb_get(tx_skb);
- pcie_tx_prepare_info(priv, tx_ctrl->rate, tx_info);
- tx_ctrl->flags |= TX_CTRL_TYPE_DATA;
- - ieee80211_tx_status(priv->hw, tx_skb);
- + ieee80211_tx_status_skb(priv->hw, tx_skb);
- }
-
- if (++tx_send_head_new >= MAX_NUM_TX_DESC)
- @@ -483,7 +483,7 @@ void pcie_tx_done_ndp(struct ieee80211_h
- }
-
- pcie_tx_prepare_info(priv, 0, tx_info);
- - ieee80211_tx_status(hw, skb);
- + ieee80211_tx_status_skb(hw, skb);
-
- bypass_ack:
- if (++tx_done_tail >= MAX_TX_RING_DONE_SIZE)
- @@ -593,13 +593,13 @@ void pcie_tx_xmit_ndp(struct ieee80211_h
- ack_skb = skb_copy(skb, GFP_ATOMIC);
- ack_info = IEEE80211_SKB_CB(ack_skb);
- pcie_tx_prepare_info(priv, 0, ack_info);
- - ieee80211_tx_status(hw, ack_skb);
- + ieee80211_tx_status_skb(hw, ack_skb);
- }
-
- pcie_tx_encapsulate_frame(priv, skb, k_conf);
- } else {
- tid = qos & 0x7;
- - if (sta && sta->ht_cap.ht_supported && !eapol_frame &&
- + if (sta && sta->deflink.ht_cap.ht_supported && !eapol_frame &&
- qos != 0xFFFF) {
- pcie_tx_count_packet(sta, tid);
- spin_lock_bh(&priv->stream_lock);
- --- a/hif/pcie/8997/tx.c
- +++ b/hif/pcie/8997/tx.c
- @@ -81,7 +81,7 @@ static int pcie_txbd_ring_create(struct
- wiphy_info(priv->hw->wiphy,
- "TX ring: - base: %p, pbase: 0x%x, len: %d\n",
- pcie_priv->txbd_ring_vbase,
- - pcie_priv->txbd_ring_pbase,
- + (u32)pcie_priv->txbd_ring_pbase,
- pcie_priv->txbd_ring_size);
-
- for (num = 0; num < PCIE_MAX_TXRX_BD; num++) {
- @@ -431,7 +431,7 @@ static void pcie_pfu_tx_done(struct mwl_
- } else
- memmove(dma_data->data - hdrlen, &dma_data->wh, hdrlen);
- skb_pull(done_skb, sizeof(*pfu_dma) - hdrlen);
- - ieee80211_tx_status(priv->hw, done_skb);
- + ieee80211_tx_status_skb(priv->hw, done_skb);
- }
- next:
- memset(data_buf, 0, sizeof(*data_buf));
- @@ -682,7 +682,7 @@ void pcie_8997_tx_xmit(struct ieee80211_
- index = SYSADPT_TX_WMM_QUEUES - index - 1;
- txpriority = index;
-
- - if (sta && sta->ht_cap.ht_supported &&
- + if (sta && sta->deflink.ht_cap.ht_supported &&
- !(xmitcontrol & EAGLE_TXD_XMITCTRL_USE_MC_RATE) &&
- ieee80211_is_data_qos(wh->frame_control)) {
- tid = qos & 0xf;
- @@ -863,4 +863,4 @@ void pcie_8997_tx_del_sta_amsdu_pkts(str
- }
- }
- spin_unlock_bh(&sta_info->amsdu_lock);
- -}
- \ No newline at end of file
- +}
- --- a/mac80211.c
- +++ b/mac80211.c
- @@ -159,7 +159,7 @@ fwcmd_fail:
- return rc;
- }
-
- -static void mwl_mac80211_stop(struct ieee80211_hw *hw)
- +static void mwl_mac80211_stop(struct ieee80211_hw *hw, bool suspend)
- {
- mwl_fwcmd_radio_disable(hw);
-
- @@ -390,15 +390,15 @@ static void mwl_mac80211_bss_info_change
- }
- }
-
- - if ((changed & BSS_CHANGED_ASSOC) && vif->bss_conf.assoc)
- + if ((changed & BSS_CHANGED_ASSOC) && vif->cfg.assoc)
- mwl_fwcmd_set_aid(hw, vif, (u8 *)vif->bss_conf.bssid,
- - vif->bss_conf.aid);
- + vif->cfg.aid);
- }
-
- static void mwl_mac80211_bss_info_changed_ap(struct ieee80211_hw *hw,
- struct ieee80211_vif *vif,
- struct ieee80211_bss_conf *info,
- - u32 changed)
- + u64 changed)
- {
- struct mwl_priv *priv = hw->priv;
- struct mwl_vif *mwl_vif;
- @@ -448,8 +448,8 @@ static void mwl_mac80211_bss_info_change
- if (changed & (BSS_CHANGED_BEACON_INT | BSS_CHANGED_BEACON)) {
- struct sk_buff *skb;
-
- - if ((info->ssid[0] != '\0') &&
- - (info->ssid_len != 0) &&
- + if ((vif->cfg.ssid[0] != '\0') &&
- + (vif->cfg.ssid_len != 0) &&
- (!info->hidden_ssid)) {
- if (mwl_vif->broadcast_ssid != true) {
- mwl_fwcmd_broadcast_ssid_enable(hw, vif, true);
- @@ -463,7 +463,7 @@ static void mwl_mac80211_bss_info_change
- }
-
- if (!mwl_vif->set_beacon) {
- - skb = ieee80211_beacon_get(hw, vif);
- + skb = ieee80211_beacon_get(hw, vif, 0);
-
- if (skb) {
- mwl_fwcmd_set_beacon(hw, vif, skb->data, skb->len);
- @@ -480,7 +480,7 @@ static void mwl_mac80211_bss_info_change
- static void mwl_mac80211_bss_info_changed(struct ieee80211_hw *hw,
- struct ieee80211_vif *vif,
- struct ieee80211_bss_conf *info,
- - u32 changed)
- + u64 changed)
- {
- switch (vif->type) {
- case NL80211_IFTYPE_AP:
- @@ -605,10 +605,10 @@ static int mwl_mac80211_sta_add(struct i
- if (vif->type == NL80211_IFTYPE_MESH_POINT)
- sta_info->is_mesh_node = true;
-
- - if (sta->ht_cap.ht_supported) {
- + if (sta->deflink.ht_cap.ht_supported) {
- sta_info->is_ampdu_allowed = true;
- sta_info->is_amsdu_allowed = false;
- - if (sta->ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) {
- + if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) {
- sta_info->amsdu_ctrl.cap = MWL_AMSDU_SIZE_8K;
- sta_info->amsdu_ctrl.amsdu_allow_size = SYSADPT_AMSDU_8K_MAX_SIZE;
- }
- @@ -692,7 +692,7 @@ static int mwl_mac80211_sta_remove(struc
-
- static int mwl_mac80211_conf_tx(struct ieee80211_hw *hw,
- struct ieee80211_vif *vif,
- - u16 queue,
- + unsigned int link_id, u16 queue,
- const struct ieee80211_tx_queue_params *params)
- {
- struct mwl_priv *priv = hw->priv;
- @@ -956,4 +956,9 @@ const struct ieee80211_ops mwl_mac80211_
- .pre_channel_switch = mwl_mac80211_chnl_switch,
- .sw_scan_start = mwl_mac80211_sw_scan_start,
- .sw_scan_complete = mwl_mac80211_sw_scan_complete,
- + .wake_tx_queue = ieee80211_handle_wake_tx_queue,
- + .add_chanctx = ieee80211_emulate_add_chanctx,
- + .remove_chanctx = ieee80211_emulate_remove_chanctx,
- + .change_chanctx = ieee80211_emulate_change_chanctx,
- + .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
- };
- --- a/utils.c
- +++ b/utils.c
- @@ -173,9 +173,9 @@ u32 utils_get_init_tx_rate(struct mwl_pr
- u32 tx_rate;
- u16 format, nss, bw, rate_mcs;
-
- - if (sta->vht_cap.vht_supported)
- + if (sta->deflink.vht_cap.vht_supported)
- format = TX_RATE_FORMAT_11AC;
- - else if (sta->ht_cap.ht_supported)
- + else if (sta->deflink.ht_cap.ht_supported)
- format = TX_RATE_FORMAT_11N;
- else
- format = TX_RATE_FORMAT_LEGACY;
- @@ -192,11 +192,11 @@ u32 utils_get_init_tx_rate(struct mwl_pr
- nss = 3;
- break;
- default:
- - nss = sta->rx_nss;
- + nss = sta->deflink.rx_nss;
- break;
- }
- - if (nss > sta->rx_nss)
- - nss = sta->rx_nss;
- + if (nss > sta->deflink.rx_nss)
- + nss = sta->deflink.rx_nss;
-
- switch (conf->chandef.width) {
- case NL80211_CHAN_WIDTH_20_NOHT:
- @@ -213,11 +213,11 @@ u32 utils_get_init_tx_rate(struct mwl_pr
- bw = TX_RATE_BANDWIDTH_160;
- break;
- default:
- - bw = sta->bandwidth;
- + bw = sta->deflink.bandwidth;
- break;
- }
- - if (bw > sta->bandwidth)
- - bw = sta->bandwidth;
- + if (bw > sta->deflink.bandwidth)
- + bw = sta->deflink.bandwidth;
-
- switch (format) {
- case TX_RATE_FORMAT_LEGACY:
- --- a/hif/pcie/pcie.c
- +++ b/hif/pcie/pcie.c
- @@ -533,7 +533,7 @@ static irqreturn_t pcie_isr_8864(struct
-
- if (int_status & MACREG_A2HRIC_BIT_RADAR_DETECT) {
- wiphy_info(hw->wiphy, "radar detected by firmware\n");
- - ieee80211_radar_detected(hw);
- + ieee80211_radar_detected(hw, NULL);
- }
-
- if (int_status & MACREG_A2HRIC_BIT_CHAN_SWITCH)
- @@ -575,7 +575,7 @@ static irqreturn_t pcie_isr_8997(struct
-
- if (int_status & MACREG_A2HRIC_BIT_RADAR_DETECT) {
- wiphy_info(hw->wiphy, "radar detected by firmware\n");
- - ieee80211_radar_detected(hw);
- + ieee80211_radar_detected(hw, NULL);
- }
-
- if (int_status & MACREG_A2HRIC_BIT_CHAN_SWITCH)
- @@ -1053,7 +1053,7 @@ static irqreturn_t pcie_isr_ndp(struct i
-
- if (int_status & MACREG_A2HRIC_NEWDP_DFS) {
- wiphy_info(hw->wiphy, "radar detected by firmware\n");
- - ieee80211_radar_detected(hw);
- + ieee80211_radar_detected(hw, NULL);
- }
-
- if (int_status & MACREG_A2HRIC_NEWDP_CHANNEL_SWITCH)
|