Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/usb Remove added delays.



details:   https://anonhg.NetBSD.org/src-all/rev/5869a1f9eeff
branches:  trunk
changeset: 988433:5869a1f9eeff
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Fri Aug 14 03:14:50 2020 +1000

description:
Remove added delays.

diffstat:

 sys/dev/usb/if_urtwn.c |  13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diffs (91 lines):

diff -r ed09f21ad765 -r 5869a1f9eeff sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Fri Aug 14 02:27:56 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Fri Aug 14 03:14:50 2020 +1000
@@ -2415,7 +2415,6 @@
                            urtwn_read_1(sc, R92C_BCN_CTRL) &
                            ~(R92C_BCN_CTRL_EN_BCN | R92C_BCN_CTRL_TXBCN_RPT));
                }
-               urtwn_delay_ms(sc, 1);
 
                /* Reset EDCA parameters. */
                urtwn_write_4(sc, R92C_EDCA_VO_PARAM, 0x002f3217);
@@ -2434,8 +2433,6 @@
                break;
        }
 
-       urtwn_delay_ms(sc, 1);
-
        switch (nstate) {
        case IEEE80211_S_INIT:
                /* Turn link LED off. */
@@ -2480,7 +2477,6 @@
                              R92C_BCN_CTRL_DIS_TSF_UDT0);
                }
 
-               urtwn_delay_ms(sc, 1);
                /* Make link LED blink during scan. */
                urtwn_set_led(sc, URTWN_LED_LINK, !sc->ledlink);
 
@@ -2506,13 +2502,11 @@
                reg = RW(reg, R92C_OFDM0_AGCCORE1_GAIN, 0x32);
                urtwn_bb_write(sc, R92C_OFDM0_AGCCORE1(0), reg);
 
-               urtwn_delay_ms(sc, 1);
                if (!ISSET(sc->chip, URTWN_CHIP_88E)) {
                        reg = urtwn_bb_read(sc, R92C_OFDM0_AGCCORE1(1));
                        reg = RW(reg, R92C_OFDM0_AGCCORE1_GAIN, 0x32);
                        urtwn_bb_write(sc, R92C_OFDM0_AGCCORE1(1), reg);
                }
-               urtwn_delay_ms(sc, 1);
 
                /* Set media status to 'No Link'. */
                urtwn_set_nettype0_msr(sc, R92C_CR_NETTYPE_NOLINK);
@@ -2570,7 +2564,6 @@
                        break;
                }
 
-               urtwn_delay_ms(sc, 1);
                /* Set media status to 'Associated'. */
                urtwn_set_nettype0_msr(sc, urtwn_get_nettype(sc));
 
@@ -2586,7 +2579,6 @@
                } else /* IEEE_MODE_11NG */
                        urtwn_write_1(sc, R92C_INIRTS_RATE_SEL, 12); /* MCS 0 */
 
-               urtwn_delay_ms(sc, 1);
 
                /* Enable Rx of data frames. */
                urtwn_write_2(sc, R92C_RXFLTMAP2, 0xffff);
@@ -5267,8 +5259,6 @@
                chan -= 2;
        }
 
-       urtwn_delay_ms(sc, 1);
-
        /* Set Tx power for this new channel. */
        urtwn_set_txpower(sc, chan, ht40m);
 
@@ -5338,7 +5328,6 @@
                            urtwn_bb_read(sc, R92C_FPGA0_ANAPARAM2) |
                            R92C_FPGA0_ANAPARAM2_CBW20);
                }
-               urtwn_delay_ms(sc, 1);
 
                /* Select 20MHz bandwidth. */
                urtwn_rf_write(sc, 0, R92C_RF_CHNLBW,
@@ -5627,7 +5616,6 @@
 
        urtwn_stop(ifp, 0);
 
-       urtwn_delay_ms(sc, 2);
        mutex_enter(&sc->sc_write_mtx);
 
        mutex_enter(&sc->sc_task_mtx);
@@ -5886,7 +5874,6 @@
        urtwn_wait_async(sc);
        splx(s);
 
-       urtwn_delay_ms(sc, 2);
        sc->tx_timer = 0;
        ifp->if_timer = 0;
        ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);



Home | Main Index | Thread Index | Old Index