]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: brcm80211: Purge unused packet engine
authorBrett Rudley <brudley@broadcom.com>
Sat, 9 Oct 2010 00:35:02 +0000 (17:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Oct 2010 02:53:10 +0000 (19:53 -0700)
We're not using the packet engine anymore - goodbye.

Signed-off-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/include/wlioctl.h
drivers/staging/brcm80211/phy/wlc_phy_cmn.c
drivers/staging/brcm80211/phy/wlc_phy_int.h
drivers/staging/brcm80211/phy/wlc_phy_lcn.c
drivers/staging/brcm80211/sys/wlc_mac80211.c
drivers/staging/brcm80211/sys/wlc_mac80211.h
drivers/staging/brcm80211/sys/wlc_phy_shim.c
drivers/staging/brcm80211/sys/wlc_phy_shim.h

index 22227c1a7fb07719a204c0a9cf2a1af8c6055c4b..0b81807c2f98b0526b93fb50558a0527ea6cc720 100644 (file)
@@ -1973,16 +1973,6 @@ typedef struct wl_pkt_filter_stats {
        u32 num_pkts_discarded; /* # packets discarded by dongle for all filters */
 } wl_pkt_filter_stats_t;
 
-typedef struct wl_pkteng {
-       u32 flags;
-       u32 delay;              /* Inter-packet delay */
-       u32 nframes;            /* Number of frames */
-       u32 length;             /* Packet length */
-       u8 seqno;               /* Enable/disable sequence no. */
-       struct ether_addr dest; /* Destination address */
-       struct ether_addr src;  /* Source address */
-} wl_pkteng_t;
-
 #define        WLC_RSSI_INVALID         0      /* invalid RSSI value */
 
 /* require default structure packing */
index a778111d5422741c4a6740623928798f4b57b3bf..63cc51c8546a853e6ddb1323acc73fb4b0bdfe3c 100644 (file)
@@ -2990,7 +2990,7 @@ void wlc_phy_watchdog(wlc_phy_t *pih)
                            (SCAN_RM_IN_PROGRESS(pi) || PLT_INPROG_PHY(pi)
                             || ASSOC_INPROG_PHY(pi)
                             || pi->carrier_suppr_disable
-                            || pi->pkteng_in_progress || pi->disable_percal))
+                            || pi->disable_percal))
                                wlc_lcnphy_calib_modes(pi,
                                                       PHY_PERICAL_WATCHDOG);
                }
index 944a44f57a333da6e7104b7e958328cf1095bee6..551bbff0f334a3e254e37093b62fcd49ddda64e0 100644 (file)
@@ -776,7 +776,6 @@ struct phy_info {
        uint phycal_mlo;
        uint phycal_txpower;
 
-       bool pkteng_in_progress;
        u8 phy_aa2g;
 
        bool nphy_tableloaded;
index 10aa247da78bf172e8bddaa6a1fcf70c4b2334e0..cdf0f0a535644c2bffcb1870922f9ea0190c9135 100644 (file)
@@ -1000,9 +1000,6 @@ static bool wlc_lcnphy_calc_rx_iq_comp(phy_info_t *pi, u16 num_samps);
 static u16 wlc_lcnphy_get_pa_gain(phy_info_t *pi);
 static void wlc_lcnphy_afe_clk_init(phy_info_t *pi, u8 mode);
 extern void wlc_lcnphy_tx_pwr_ctrl_init(wlc_phy_t *ppi);
-extern void wlc_lcnphy_pktengtx(wlc_phy_t *ppi, wl_pkteng_t *pkteng,
-                               u8 rate, struct ether_addr *sa,
-                               u32 wait_delay);
 static void wlc_lcnphy_radio_2064_channel_tune_4313(phy_info_t *pi,
                                                    u8 channel);
 
@@ -3669,12 +3666,6 @@ static void wlc_lcnphy_set_chanspec_tweaks(phy_info_t *pi, chanspec_t chanspec)
        write_phy_reg(pi, 0x44a, 0x80);
 }
 
-void
-wlc_lcnphy_pktengtx(wlc_phy_t *ppi, wl_pkteng_t *pkteng, u8 rate,
-                   struct ether_addr *sa, u32 wait_delay)
-{
-}
-
 void wlc_lcnphy_tx_power_adjustment(wlc_phy_t *ppi)
 {
        s8 index;
index ae6a2fd4aad04b158bccd4aae9273111d303e9ea..7bdd60efa544075ed3caa3164f4da5a9a094cbd7 100644 (file)
@@ -8347,66 +8347,6 @@ wlc_duty_cycle_set(wlc_info_t *wlc, int duty_cycle, bool isOFDM,
        return BCME_OK;
 }
 
-void
-wlc_pktengtx(wlc_info_t *wlc, wl_pkteng_t *pkteng, u8 rate,
-            struct ether_addr *sa, u32 wait_delay)
-{
-       bool suspend;
-       u16 val = M_PKTENG_MODE_TX;
-       volatile u16 frame_cnt_check;
-       u8 counter = 0;
-
-       wlc_bmac_set_deaf(wlc->hw, TRUE);
-
-       suspend =
-           (0 == (R_REG(wlc->hw->osh, &wlc->regs->maccontrol) & MCTL_EN_MAC));
-       if (suspend)
-               wlc_enable_mac(wlc);
-
-       /* set nframes */
-       if (pkteng->nframes) {
-               /* retry counter is used to replay the packet */
-               wlc_bmac_write_shm(wlc->hw, M_PKTENG_FRMCNT_LO,
-                                  (pkteng->nframes & 0xffff));
-               wlc_bmac_write_shm(wlc->hw, M_PKTENG_FRMCNT_HI,
-                                  ((pkteng->nframes >> 16) & 0xffff));
-               val |= M_PKTENG_FRMCNT_VLD;
-       }
-
-       if (pkteng->length) {
-               /* DATA frame */
-               wlc_bmac_write_shm(wlc->hw, M_PKTENG_CTRL, val);
-               /* we write to M_MFGTEST_IFS the IFS required in 1/8us factor */
-               /* 10 : for factoring difference b/w Tx.crs and energy in air */
-               /* 44 : amount of time spent after TX_RRSP to frame start */
-               /* IFS */
-               wlc_bmac_write_shm(wlc->hw, M_PKTENG_IFS,
-                                  (pkteng->delay - 10) * 8 - 44);
-       } else {
-               /* CTS frame */
-               val |= M_PKTENG_MODE_TX_CTS;
-               wlc_bmac_write_shm(wlc->hw, M_PKTENG_IFS,
-                                  (u16) pkteng->delay);
-               wlc_bmac_write_shm(wlc->hw, M_PKTENG_CTRL, val);
-       }
-
-       /* Wait for packets to finish */
-       frame_cnt_check = wlc_bmac_read_shm(wlc->hw, M_PKTENG_FRMCNT_LO);
-       while ((counter < 100) && (frame_cnt_check != 0)) {
-               OSL_DELAY(100);
-               frame_cnt_check =
-                   wlc_bmac_read_shm(wlc->hw, M_PKTENG_FRMCNT_LO);
-               counter++;
-       }
-
-       wlc_bmac_write_shm(wlc->hw, M_PKTENG_CTRL, 0);
-
-       if (suspend)
-               wlc_suspend_mac_and_wait(wlc);
-
-       wlc_bmac_set_deaf(wlc->hw, FALSE);
-}
-
 /* Read a single u16 from shared memory.
  * SHM 'offset' needs to be an even address
  */
index 8a726be9893dfef9aa25a56f5fe0799963ea565b..1fb055e6444fa00815a131f596bfed9211d6fe19 100644 (file)
@@ -902,8 +902,6 @@ extern void wlc_reset_bmac_done(wlc_info_t *wlc);
 extern void wlc_protection_upd(wlc_info_t *wlc, uint idx, int val);
 extern void wlc_hwtimer_gptimer_set(wlc_info_t *wlc, uint us);
 extern void wlc_hwtimer_gptimer_abort(wlc_info_t *wlc);
-extern void wlc_pktengtx(wlc_info_t *wlc, wl_pkteng_t *pkteng, u8 rate,
-                        struct ether_addr *sa, u32 wait_delay);
 
 #if defined(BCMDBG)
 extern void wlc_print_rxh(d11rxhdr_t *rxh);
index 9e8f19635f804d3acfe2a4fad7b0fdc69a188dd5..7c8193a3e6a46fc918f2cee4362fa283eed3128f 100644 (file)
@@ -244,10 +244,3 @@ wlapi_copyto_objmem(wlc_phy_shim_info_t *physhim, uint offset, const void *buf,
 {
        wlc_bmac_copyto_objmem(physhim->wlc_hw, offset, buf, l, sel);
 }
-
-void
-wlapi_bmac_pktengtx(wlc_phy_shim_info_t *physhim, wl_pkteng_t *pkteng,
-                   u8 rate, struct ether_addr *sa, u32 wait_delay)
-{
-       wlc_pktengtx(physhim->wlc, pkteng, rate, sa, wait_delay);
-}
index c5d911984605cda621e22f0a0b8a46bd253708cd..c151a5d8c693943a426b676a5a3fa564fb943299 100644 (file)
@@ -108,8 +108,5 @@ extern void wlapi_copyto_objmem(wlc_phy_shim_info_t *physhim, uint,
 
 extern void wlapi_high_update_phy_mode(wlc_phy_shim_info_t *physhim,
                                       u32 phy_mode);
-extern void wlapi_bmac_pktengtx(wlc_phy_shim_info_t *physhim,
-                               wl_pkteng_t *pkteng, u8 rate,
-                               struct ether_addr *sa, u32 wait_delay);
 extern u16 wlapi_bmac_get_txant(wlc_phy_shim_info_t *physhim);
 #endif                         /* _wlc_phy_shim_h_ */