hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c
....@@ -304,9 +304,8 @@
304304 * update wlc->stf->ss_opmode which represents the operational stf_ss mode
305305 * we're using
306306 */
307
-int brcms_c_stf_ss_update(struct brcms_c_info *wlc, struct brcms_band *band)
307
+void brcms_c_stf_ss_update(struct brcms_c_info *wlc, struct brcms_band *band)
308308 {
309
- int ret_code = 0;
310309 u8 prev_stf_ss;
311310 u8 upd_stf_ss;
312311
....@@ -325,7 +324,7 @@
325324 PHY_TXC1_MODE_SISO : PHY_TXC1_MODE_CDD;
326325 } else {
327326 if (wlc->band != band)
328
- return ret_code;
327
+ return;
329328 upd_stf_ss = (wlc->stf->txstreams == 1) ?
330329 PHY_TXC1_MODE_SISO : band->band_stf_ss_mode;
331330 }
....@@ -333,8 +332,6 @@
333332 wlc->stf->ss_opmode = upd_stf_ss;
334333 brcms_b_band_stf_ss_set(wlc->hw, upd_stf_ss);
335334 }
336
-
337
- return ret_code;
338335 }
339336
340337 int brcms_c_stf_attach(struct brcms_c_info *wlc)