020-mac80211_update.patch 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. --- a/core.c
  2. +++ b/core.c
  3. @@ -718,8 +718,8 @@ static void mwl_chnl_switch_event(struct
  4. vif = container_of((void *)mwl_vif, struct ieee80211_vif,
  5. drv_priv);
  6. - if (vif->csa_active)
  7. - ieee80211_csa_finish(vif);
  8. + if (vif->bss_conf.csa_active)
  9. + ieee80211_csa_finish(vif, 0);
  10. }
  11. spin_unlock_bh(&priv->vif_lock);
  12. --- a/debugfs.c
  13. +++ b/debugfs.c
  14. @@ -550,9 +550,9 @@ static ssize_t mwl_debugfs_vif_read(stru
  15. switch (vif->type) {
  16. case NL80211_IFTYPE_AP:
  17. len += scnprintf(p + len, size - len, "type: ap\n");
  18. - memcpy(ssid, vif->bss_conf.ssid,
  19. - vif->bss_conf.ssid_len);
  20. - ssid[vif->bss_conf.ssid_len] = 0;
  21. + memcpy(ssid, vif->cfg.ssid,
  22. + vif->cfg.ssid_len);
  23. + ssid[vif->cfg.ssid_len] = 0;
  24. len += scnprintf(p + len, size - len,
  25. "ssid: %s\n", ssid);
  26. len += scnprintf(p + len, size - len,
  27. @@ -574,8 +574,8 @@ static ssize_t mwl_debugfs_vif_read(stru
  28. "type: unknown\n");
  29. break;
  30. }
  31. - if (vif->chanctx_conf) {
  32. - chan_def = &vif->chanctx_conf->def;
  33. + if (vif->bss_conf.chanctx_conf) {
  34. + chan_def = &vif->bss_conf.chanctx_conf->def;
  35. len += scnprintf(p + len, size - len,
  36. "channel: %d: width: %d\n",
  37. chan_def->chan->hw_value,
  38. @@ -648,18 +648,18 @@ static ssize_t mwl_debugfs_sta_read(stru
  39. sta_info->wds ? "true" : "false",
  40. sta_info->ba_hist.enable ? "enable" : "disable",
  41. sta_info->is_amsdu_allowed ? sta_info->amsdu_ctrl.cap : 0 ,
  42. - sta->ht_cap.ht_supported ? sta->ht_cap.cap : 0,
  43. - sta->ht_cap.ht_supported ? sta->ht_cap.ampdu_factor : 0,
  44. - sta->ht_cap.ht_supported ? sta->ht_cap.ampdu_density : 0,
  45. - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[0] : 0,
  46. - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[1] : 0,
  47. - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[2] : 0,
  48. - sta->ht_cap.ht_supported ? sta->ht_cap.mcs.rx_mask[3] : 0,
  49. - sta->vht_cap.vht_supported ? sta->vht_cap.cap : 0,
  50. - sta->vht_cap.vht_supported ? sta->vht_cap.vht_mcs.rx_mcs_map : 0,
  51. - sta->vht_cap.vht_supported ? sta->vht_cap.vht_mcs.tx_mcs_map : 0,
  52. - sta->bandwidth,
  53. - sta->rx_nss,
  54. + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.cap : 0,
  55. + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.ampdu_factor : 0,
  56. + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.ampdu_density : 0,
  57. + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[0] : 0,
  58. + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[1] : 0,
  59. + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[2] : 0,
  60. + sta->deflink.ht_cap.ht_supported ? sta->deflink.ht_cap.mcs.rx_mask[3] : 0,
  61. + sta->deflink.vht_cap.vht_supported ? sta->deflink.vht_cap.cap : 0,
  62. + sta->deflink.vht_cap.vht_supported ? sta->deflink.vht_cap.vht_mcs.rx_mcs_map : 0,
  63. + sta->deflink.vht_cap.vht_supported ? sta->deflink.vht_cap.vht_mcs.tx_mcs_map : 0,
  64. + sta->deflink.bandwidth,
  65. + sta->deflink.rx_nss,
  66. sta->tdls,
  67. sta->tdls_initiator,
  68. sta->wme,
  69. @@ -1210,7 +1210,7 @@ static ssize_t mwl_debugfs_dfs_radar_wri
  70. struct mwl_priv *priv = (struct mwl_priv *)file->private_data;
  71. wiphy_info(priv->hw->wiphy, "simulate radar detected\n");
  72. - ieee80211_radar_detected(priv->hw);
  73. + ieee80211_radar_detected(priv->hw, NULL);
  74. return count;
  75. }
  76. --- a/hif/fwcmd.c
  77. +++ b/hif/fwcmd.c
  78. @@ -633,11 +633,15 @@ einval:
  79. }
  80. static int mwl_fwcmd_set_ap_beacon(struct mwl_priv *priv,
  81. - struct mwl_vif *mwl_vif,
  82. - struct ieee80211_bss_conf *bss_conf)
  83. + struct ieee80211_vif *vif)
  84. {
  85. struct hostcmd_cmd_ap_beacon *pcmd;
  86. struct ds_params *phy_ds_param_set;
  87. + struct mwl_vif *mwl_vif;
  88. + struct ieee80211_bss_conf *bss_conf;
  89. +
  90. + mwl_vif = mwl_dev_get_vif(vif);
  91. + bss_conf = &vif->bss_conf;
  92. /* wmm structure of start command is defined less one byte,
  93. * due to following field country is not used, add byte one
  94. @@ -664,7 +668,7 @@ static int mwl_fwcmd_set_ap_beacon(struc
  95. pcmd->cmd_hdr.macid = mwl_vif->macid;
  96. ether_addr_copy(pcmd->start_cmd.sta_mac_addr, mwl_vif->bssid);
  97. - memcpy(pcmd->start_cmd.ssid, bss_conf->ssid, bss_conf->ssid_len);
  98. + memcpy(pcmd->start_cmd.ssid, vif->cfg.ssid, vif->cfg.ssid_len);
  99. if (priv->chip_type == MWL8997)
  100. ether_addr_copy(pcmd->start_cmd.bssid, mwl_vif->bssid);
  101. pcmd->start_cmd.bss_type = 1;
  102. @@ -674,7 +678,7 @@ static int mwl_fwcmd_set_ap_beacon(struc
  103. phy_ds_param_set = &pcmd->start_cmd.phy_param_set.ds_param_set;
  104. phy_ds_param_set->elem_id = WLAN_EID_DS_PARAMS;
  105. phy_ds_param_set->len = sizeof(phy_ds_param_set->current_chnl);
  106. - phy_ds_param_set->current_chnl = bss_conf->chandef.chan->hw_value;
  107. + phy_ds_param_set->current_chnl = bss_conf->chanreq.oper.chan->hw_value;
  108. pcmd->start_cmd.probe_delay = cpu_to_le16(10);
  109. pcmd->start_cmd.cap_info = cpu_to_le16(mwl_vif->beacon_info.cap_info);
  110. @@ -768,9 +772,9 @@ static int mwl_fwcmd_set_country_code(st
  111. bool enable = false;
  112. if (b_inf->ie_country_ptr) {
  113. - if (bss_conf->chandef.chan->band == NL80211_BAND_2GHZ)
  114. + if (bss_conf->chanreq.oper.chan->band == NL80211_BAND_2GHZ)
  115. a_band = false;
  116. - else if (bss_conf->chandef.chan->band == NL80211_BAND_5GHZ)
  117. + else if (bss_conf->chanreq.oper.chan->band == NL80211_BAND_5GHZ)
  118. a_band = true;
  119. else
  120. return -EINVAL;
  121. @@ -2092,7 +2096,7 @@ int mwl_fwcmd_set_beacon(struct ieee8021
  122. if (mwl_fwcmd_set_wsc_ie(hw, b_inf->ie_wsc_len, b_inf->ie_wsc_ptr))
  123. goto err;
  124. - if (mwl_fwcmd_set_ap_beacon(priv, mwl_vif, &vif->bss_conf))
  125. + if (mwl_fwcmd_set_ap_beacon(priv, vif))
  126. goto err;
  127. if (b_inf->cap_info & WLAN_CAPABILITY_SPECTRUM_MGMT)
  128. @@ -2154,38 +2158,38 @@ int mwl_fwcmd_set_new_stn_add(struct iee
  129. ether_addr_copy(pcmd->mac_addr, sta->addr);
  130. if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ)
  131. - rates = sta->supp_rates[NL80211_BAND_2GHZ];
  132. + rates = sta->deflink.supp_rates[NL80211_BAND_2GHZ];
  133. else
  134. - rates = sta->supp_rates[NL80211_BAND_5GHZ] << 5;
  135. + rates = sta->deflink.supp_rates[NL80211_BAND_5GHZ] << 5;
  136. pcmd->peer_info.legacy_rate_bitmap = cpu_to_le32(rates);
  137. - if (sta->ht_cap.ht_supported) {
  138. + if (sta->deflink.ht_cap.ht_supported) {
  139. int i;
  140. for (i = 0; i < 4; i++) {
  141. - if (i < sta->rx_nss) {
  142. + if (i < sta->deflink.rx_nss) {
  143. pcmd->peer_info.ht_rates[i] =
  144. - sta->ht_cap.mcs.rx_mask[i];
  145. + sta->deflink.ht_cap.mcs.rx_mask[i];
  146. } else {
  147. pcmd->peer_info.ht_rates[i] = 0;
  148. }
  149. }
  150. - pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->ht_cap.cap);
  151. + pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->deflink.ht_cap.cap);
  152. pcmd->peer_info.mac_ht_param_info =
  153. - (sta->ht_cap.ampdu_factor & 3) |
  154. - ((sta->ht_cap.ampdu_density & 7) << 2);
  155. + (sta->deflink.ht_cap.ampdu_factor & 3) |
  156. + ((sta->deflink.ht_cap.ampdu_density & 7) << 2);
  157. }
  158. - if (sta->vht_cap.vht_supported) {
  159. + if (sta->deflink.vht_cap.vht_supported) {
  160. u32 rx_mcs_map_mask = 0;
  161. - rx_mcs_map_mask = ((0x0000FFFF) >> (sta->rx_nss * 2))
  162. - << (sta->rx_nss * 2);
  163. + rx_mcs_map_mask = ((0x0000FFFF) >> (sta->deflink.rx_nss * 2))
  164. + << (sta->deflink.rx_nss * 2);
  165. pcmd->peer_info.vht_max_rx_mcs =
  166. cpu_to_le32((*((u32 *)
  167. - &sta->vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
  168. - pcmd->peer_info.vht_cap = cpu_to_le32(sta->vht_cap.cap);
  169. - pcmd->peer_info.vht_rx_channel_width = sta->bandwidth;
  170. + &sta->deflink.vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
  171. + pcmd->peer_info.vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap);
  172. + pcmd->peer_info.vht_rx_channel_width = sta->deflink.bandwidth;
  173. }
  174. pcmd->is_qos_sta = sta->wme;
  175. @@ -2241,38 +2245,38 @@ int mwl_fwcmd_set_new_stn_add_sc4(struct
  176. ether_addr_copy(pcmd->mac_addr, sta->addr);
  177. if (hw->conf.chandef.chan->band == NL80211_BAND_2GHZ)
  178. - rates = sta->supp_rates[NL80211_BAND_2GHZ];
  179. + rates = sta->deflink.supp_rates[NL80211_BAND_2GHZ];
  180. else
  181. - rates = sta->supp_rates[NL80211_BAND_5GHZ] << 5;
  182. + rates = sta->deflink.supp_rates[NL80211_BAND_5GHZ] << 5;
  183. pcmd->peer_info.legacy_rate_bitmap = cpu_to_le32(rates);
  184. - if (sta->ht_cap.ht_supported) {
  185. + if (sta->deflink.ht_cap.ht_supported) {
  186. int i;
  187. for (i = 0; i < 4; i++) {
  188. - if (i < sta->rx_nss) {
  189. + if (i < sta->deflink.rx_nss) {
  190. pcmd->peer_info.ht_rates[i] =
  191. - sta->ht_cap.mcs.rx_mask[i];
  192. + sta->deflink.ht_cap.mcs.rx_mask[i];
  193. } else {
  194. pcmd->peer_info.ht_rates[i] = 0;
  195. }
  196. }
  197. - pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->ht_cap.cap);
  198. + pcmd->peer_info.ht_cap_info = cpu_to_le16(sta->deflink.ht_cap.cap);
  199. pcmd->peer_info.mac_ht_param_info =
  200. - (sta->ht_cap.ampdu_factor & 3) |
  201. - ((sta->ht_cap.ampdu_density & 7) << 2);
  202. + (sta->deflink.ht_cap.ampdu_factor & 3) |
  203. + ((sta->deflink.ht_cap.ampdu_density & 7) << 2);
  204. }
  205. - if (sta->vht_cap.vht_supported) {
  206. + if (sta->deflink.vht_cap.vht_supported) {
  207. u32 rx_mcs_map_mask = 0;
  208. - rx_mcs_map_mask = ((0x0000FFFF) >> (sta->rx_nss * 2))
  209. - << (sta->rx_nss * 2);
  210. + rx_mcs_map_mask = ((0x0000FFFF) >> (sta->deflink.rx_nss * 2))
  211. + << (sta->deflink.rx_nss * 2);
  212. pcmd->peer_info.vht_max_rx_mcs =
  213. cpu_to_le32((*((u32 *)
  214. - &sta->vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
  215. - pcmd->peer_info.vht_cap = cpu_to_le32(sta->vht_cap.cap);
  216. - pcmd->peer_info.vht_rx_channel_width = sta->bandwidth;
  217. + &sta->deflink.vht_cap.vht_mcs.rx_mcs_map)) | rx_mcs_map_mask);
  218. + pcmd->peer_info.vht_cap = cpu_to_le32(sta->deflink.vht_cap.cap);
  219. + pcmd->peer_info.vht_rx_channel_width = sta->deflink.bandwidth;
  220. }
  221. pcmd->is_qos_sta = sta->wme;
  222. @@ -2789,9 +2793,9 @@ int mwl_fwcmd_create_ba(struct ieee80211
  223. pcmd->ba_info.create_params.flags = cpu_to_le32(ba_flags);
  224. pcmd->ba_info.create_params.queue_id = stream->idx;
  225. pcmd->ba_info.create_params.param_info =
  226. - (stream->sta->ht_cap.ampdu_factor &
  227. + (stream->sta->deflink.ht_cap.ampdu_factor &
  228. IEEE80211_HT_AMPDU_PARM_FACTOR) |
  229. - ((stream->sta->ht_cap.ampdu_density << 2) &
  230. + ((stream->sta->deflink.ht_cap.ampdu_density << 2) &
  231. IEEE80211_HT_AMPDU_PARM_DENSITY);
  232. if (direction == BA_FLAG_DIRECTION_UP) {
  233. pcmd->ba_info.create_params.reset_seq_no = 0;
  234. @@ -2801,9 +2805,9 @@ int mwl_fwcmd_create_ba(struct ieee80211
  235. pcmd->ba_info.create_params.current_seq = cpu_to_le16(0);
  236. }
  237. if (priv->chip_type == MWL8964 &&
  238. - stream->sta->vht_cap.vht_supported) {
  239. + stream->sta->deflink.vht_cap.vht_supported) {
  240. pcmd->ba_info.create_params.vht_rx_factor =
  241. - cpu_to_le32((stream->sta->vht_cap.cap &
  242. + cpu_to_le32((stream->sta->deflink.vht_cap.cap &
  243. IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK) >>
  244. IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT);
  245. }
  246. --- a/hif/pcie/8864/tx.c
  247. +++ b/hif/pcie/8864/tx.c
  248. @@ -478,7 +478,7 @@ static void pcie_non_pfu_tx_done(struct
  249. } else
  250. memmove(dma_data->data - hdrlen, &dma_data->wh, hdrlen);
  251. skb_pull(done_skb, sizeof(*dma_data) - hdrlen);
  252. - ieee80211_tx_status(priv->hw, done_skb);
  253. + ieee80211_tx_status_skb(priv->hw, done_skb);
  254. next:
  255. tx_hndl = tx_hndl->pnext;
  256. tx_desc = tx_hndl->pdesc;
  257. @@ -730,7 +730,7 @@ void pcie_8864_tx_xmit(struct ieee80211_
  258. index = SYSADPT_TX_WMM_QUEUES - index - 1;
  259. txpriority = index;
  260. - if (sta && sta->ht_cap.ht_supported &&
  261. + if (sta && sta->deflink.ht_cap.ht_supported &&
  262. !(xmitcontrol & EAGLE_TXD_XMITCTRL_USE_MC_RATE) &&
  263. ieee80211_is_data_qos(wh->frame_control)) {
  264. tid = qos & 0xf;
  265. @@ -912,4 +912,4 @@ void pcie_8864_tx_del_sta_amsdu_pkts(str
  266. }
  267. }
  268. spin_unlock_bh(&sta_info->amsdu_lock);
  269. -}
  270. \ No newline at end of file
  271. +}
  272. --- a/hif/pcie/8964/tx_ndp.c
  273. +++ b/hif/pcie/8964/tx_ndp.c
  274. @@ -287,7 +287,7 @@ static inline int pcie_tx_skb_ndp(struct
  275. skb_get(tx_skb);
  276. pcie_tx_prepare_info(priv, tx_ctrl->rate, tx_info);
  277. tx_ctrl->flags |= TX_CTRL_TYPE_DATA;
  278. - ieee80211_tx_status(priv->hw, tx_skb);
  279. + ieee80211_tx_status_skb(priv->hw, tx_skb);
  280. }
  281. if (++tx_send_head_new >= MAX_NUM_TX_DESC)
  282. @@ -483,7 +483,7 @@ void pcie_tx_done_ndp(struct ieee80211_h
  283. }
  284. pcie_tx_prepare_info(priv, 0, tx_info);
  285. - ieee80211_tx_status(hw, skb);
  286. + ieee80211_tx_status_skb(hw, skb);
  287. bypass_ack:
  288. if (++tx_done_tail >= MAX_TX_RING_DONE_SIZE)
  289. @@ -593,13 +593,13 @@ void pcie_tx_xmit_ndp(struct ieee80211_h
  290. ack_skb = skb_copy(skb, GFP_ATOMIC);
  291. ack_info = IEEE80211_SKB_CB(ack_skb);
  292. pcie_tx_prepare_info(priv, 0, ack_info);
  293. - ieee80211_tx_status(hw, ack_skb);
  294. + ieee80211_tx_status_skb(hw, ack_skb);
  295. }
  296. pcie_tx_encapsulate_frame(priv, skb, k_conf);
  297. } else {
  298. tid = qos & 0x7;
  299. - if (sta && sta->ht_cap.ht_supported && !eapol_frame &&
  300. + if (sta && sta->deflink.ht_cap.ht_supported && !eapol_frame &&
  301. qos != 0xFFFF) {
  302. pcie_tx_count_packet(sta, tid);
  303. spin_lock_bh(&priv->stream_lock);
  304. --- a/hif/pcie/8997/tx.c
  305. +++ b/hif/pcie/8997/tx.c
  306. @@ -81,7 +81,7 @@ static int pcie_txbd_ring_create(struct
  307. wiphy_info(priv->hw->wiphy,
  308. "TX ring: - base: %p, pbase: 0x%x, len: %d\n",
  309. pcie_priv->txbd_ring_vbase,
  310. - pcie_priv->txbd_ring_pbase,
  311. + (u32)pcie_priv->txbd_ring_pbase,
  312. pcie_priv->txbd_ring_size);
  313. for (num = 0; num < PCIE_MAX_TXRX_BD; num++) {
  314. @@ -431,7 +431,7 @@ static void pcie_pfu_tx_done(struct mwl_
  315. } else
  316. memmove(dma_data->data - hdrlen, &dma_data->wh, hdrlen);
  317. skb_pull(done_skb, sizeof(*pfu_dma) - hdrlen);
  318. - ieee80211_tx_status(priv->hw, done_skb);
  319. + ieee80211_tx_status_skb(priv->hw, done_skb);
  320. }
  321. next:
  322. memset(data_buf, 0, sizeof(*data_buf));
  323. @@ -682,7 +682,7 @@ void pcie_8997_tx_xmit(struct ieee80211_
  324. index = SYSADPT_TX_WMM_QUEUES - index - 1;
  325. txpriority = index;
  326. - if (sta && sta->ht_cap.ht_supported &&
  327. + if (sta && sta->deflink.ht_cap.ht_supported &&
  328. !(xmitcontrol & EAGLE_TXD_XMITCTRL_USE_MC_RATE) &&
  329. ieee80211_is_data_qos(wh->frame_control)) {
  330. tid = qos & 0xf;
  331. @@ -863,4 +863,4 @@ void pcie_8997_tx_del_sta_amsdu_pkts(str
  332. }
  333. }
  334. spin_unlock_bh(&sta_info->amsdu_lock);
  335. -}
  336. \ No newline at end of file
  337. +}
  338. --- a/mac80211.c
  339. +++ b/mac80211.c
  340. @@ -159,7 +159,7 @@ fwcmd_fail:
  341. return rc;
  342. }
  343. -static void mwl_mac80211_stop(struct ieee80211_hw *hw)
  344. +static void mwl_mac80211_stop(struct ieee80211_hw *hw, bool suspend)
  345. {
  346. mwl_fwcmd_radio_disable(hw);
  347. @@ -390,15 +390,15 @@ static void mwl_mac80211_bss_info_change
  348. }
  349. }
  350. - if ((changed & BSS_CHANGED_ASSOC) && vif->bss_conf.assoc)
  351. + if ((changed & BSS_CHANGED_ASSOC) && vif->cfg.assoc)
  352. mwl_fwcmd_set_aid(hw, vif, (u8 *)vif->bss_conf.bssid,
  353. - vif->bss_conf.aid);
  354. + vif->cfg.aid);
  355. }
  356. static void mwl_mac80211_bss_info_changed_ap(struct ieee80211_hw *hw,
  357. struct ieee80211_vif *vif,
  358. struct ieee80211_bss_conf *info,
  359. - u32 changed)
  360. + u64 changed)
  361. {
  362. struct mwl_priv *priv = hw->priv;
  363. struct mwl_vif *mwl_vif;
  364. @@ -448,8 +448,8 @@ static void mwl_mac80211_bss_info_change
  365. if (changed & (BSS_CHANGED_BEACON_INT | BSS_CHANGED_BEACON)) {
  366. struct sk_buff *skb;
  367. - if ((info->ssid[0] != '\0') &&
  368. - (info->ssid_len != 0) &&
  369. + if ((vif->cfg.ssid[0] != '\0') &&
  370. + (vif->cfg.ssid_len != 0) &&
  371. (!info->hidden_ssid)) {
  372. if (mwl_vif->broadcast_ssid != true) {
  373. mwl_fwcmd_broadcast_ssid_enable(hw, vif, true);
  374. @@ -463,7 +463,7 @@ static void mwl_mac80211_bss_info_change
  375. }
  376. if (!mwl_vif->set_beacon) {
  377. - skb = ieee80211_beacon_get(hw, vif);
  378. + skb = ieee80211_beacon_get(hw, vif, 0);
  379. if (skb) {
  380. mwl_fwcmd_set_beacon(hw, vif, skb->data, skb->len);
  381. @@ -480,7 +480,7 @@ static void mwl_mac80211_bss_info_change
  382. static void mwl_mac80211_bss_info_changed(struct ieee80211_hw *hw,
  383. struct ieee80211_vif *vif,
  384. struct ieee80211_bss_conf *info,
  385. - u32 changed)
  386. + u64 changed)
  387. {
  388. switch (vif->type) {
  389. case NL80211_IFTYPE_AP:
  390. @@ -605,10 +605,10 @@ static int mwl_mac80211_sta_add(struct i
  391. if (vif->type == NL80211_IFTYPE_MESH_POINT)
  392. sta_info->is_mesh_node = true;
  393. - if (sta->ht_cap.ht_supported) {
  394. + if (sta->deflink.ht_cap.ht_supported) {
  395. sta_info->is_ampdu_allowed = true;
  396. sta_info->is_amsdu_allowed = false;
  397. - if (sta->ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) {
  398. + if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) {
  399. sta_info->amsdu_ctrl.cap = MWL_AMSDU_SIZE_8K;
  400. sta_info->amsdu_ctrl.amsdu_allow_size = SYSADPT_AMSDU_8K_MAX_SIZE;
  401. }
  402. @@ -692,7 +692,7 @@ static int mwl_mac80211_sta_remove(struc
  403. static int mwl_mac80211_conf_tx(struct ieee80211_hw *hw,
  404. struct ieee80211_vif *vif,
  405. - u16 queue,
  406. + unsigned int link_id, u16 queue,
  407. const struct ieee80211_tx_queue_params *params)
  408. {
  409. struct mwl_priv *priv = hw->priv;
  410. @@ -956,4 +956,9 @@ const struct ieee80211_ops mwl_mac80211_
  411. .pre_channel_switch = mwl_mac80211_chnl_switch,
  412. .sw_scan_start = mwl_mac80211_sw_scan_start,
  413. .sw_scan_complete = mwl_mac80211_sw_scan_complete,
  414. + .wake_tx_queue = ieee80211_handle_wake_tx_queue,
  415. + .add_chanctx = ieee80211_emulate_add_chanctx,
  416. + .remove_chanctx = ieee80211_emulate_remove_chanctx,
  417. + .change_chanctx = ieee80211_emulate_change_chanctx,
  418. + .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
  419. };
  420. --- a/utils.c
  421. +++ b/utils.c
  422. @@ -173,9 +173,9 @@ u32 utils_get_init_tx_rate(struct mwl_pr
  423. u32 tx_rate;
  424. u16 format, nss, bw, rate_mcs;
  425. - if (sta->vht_cap.vht_supported)
  426. + if (sta->deflink.vht_cap.vht_supported)
  427. format = TX_RATE_FORMAT_11AC;
  428. - else if (sta->ht_cap.ht_supported)
  429. + else if (sta->deflink.ht_cap.ht_supported)
  430. format = TX_RATE_FORMAT_11N;
  431. else
  432. format = TX_RATE_FORMAT_LEGACY;
  433. @@ -192,11 +192,11 @@ u32 utils_get_init_tx_rate(struct mwl_pr
  434. nss = 3;
  435. break;
  436. default:
  437. - nss = sta->rx_nss;
  438. + nss = sta->deflink.rx_nss;
  439. break;
  440. }
  441. - if (nss > sta->rx_nss)
  442. - nss = sta->rx_nss;
  443. + if (nss > sta->deflink.rx_nss)
  444. + nss = sta->deflink.rx_nss;
  445. switch (conf->chandef.width) {
  446. case NL80211_CHAN_WIDTH_20_NOHT:
  447. @@ -213,11 +213,11 @@ u32 utils_get_init_tx_rate(struct mwl_pr
  448. bw = TX_RATE_BANDWIDTH_160;
  449. break;
  450. default:
  451. - bw = sta->bandwidth;
  452. + bw = sta->deflink.bandwidth;
  453. break;
  454. }
  455. - if (bw > sta->bandwidth)
  456. - bw = sta->bandwidth;
  457. + if (bw > sta->deflink.bandwidth)
  458. + bw = sta->deflink.bandwidth;
  459. switch (format) {
  460. case TX_RATE_FORMAT_LEGACY:
  461. --- a/hif/pcie/pcie.c
  462. +++ b/hif/pcie/pcie.c
  463. @@ -533,7 +533,7 @@ static irqreturn_t pcie_isr_8864(struct
  464. if (int_status & MACREG_A2HRIC_BIT_RADAR_DETECT) {
  465. wiphy_info(hw->wiphy, "radar detected by firmware\n");
  466. - ieee80211_radar_detected(hw);
  467. + ieee80211_radar_detected(hw, NULL);
  468. }
  469. if (int_status & MACREG_A2HRIC_BIT_CHAN_SWITCH)
  470. @@ -575,7 +575,7 @@ static irqreturn_t pcie_isr_8997(struct
  471. if (int_status & MACREG_A2HRIC_BIT_RADAR_DETECT) {
  472. wiphy_info(hw->wiphy, "radar detected by firmware\n");
  473. - ieee80211_radar_detected(hw);
  474. + ieee80211_radar_detected(hw, NULL);
  475. }
  476. if (int_status & MACREG_A2HRIC_BIT_CHAN_SWITCH)
  477. @@ -1053,7 +1053,7 @@ static irqreturn_t pcie_isr_ndp(struct i
  478. if (int_status & MACREG_A2HRIC_NEWDP_DFS) {
  479. wiphy_info(hw->wiphy, "radar detected by firmware\n");
  480. - ieee80211_radar_detected(hw);
  481. + ieee80211_radar_detected(hw, NULL);
  482. }
  483. if (int_status & MACREG_A2HRIC_NEWDP_CHANNEL_SWITCH)