Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220260
b: refs/heads/master
c: a9a6073
h: refs/heads/master
v: v3
  • Loading branch information
Brett Rudley authored and Greg Kroah-Hartman committed Oct 9, 2010
1 parent c66007e commit 1bc864b
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 94 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb693a712cce5a52bec5d5769b17c2ca93662c61
refs/heads/master: a9a6073c51ddc4f562b1918ded7e27830e0d9d9f
10 changes: 0 additions & 10 deletions trunk/drivers/staging/brcm80211/include/wlioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/brcm80211/phy/wlc_phy_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/brcm80211/phy/wlc_phy_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ struct phy_info {
uint phycal_mlo;
uint phycal_txpower;

bool pkteng_in_progress;
u8 phy_aa2g;

bool nphy_tableloaded;
Expand Down
9 changes: 0 additions & 9 deletions trunk/drivers/staging/brcm80211/phy/wlc_phy_lcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down
60 changes: 0 additions & 60 deletions trunk/drivers/staging/brcm80211/sys/wlc_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/brcm80211/sys/wlc_mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/staging/brcm80211/sys/wlc_phy_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
3 changes: 0 additions & 3 deletions trunk/drivers/staging/brcm80211/sys/wlc_phy_shim.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 1bc864b

Please sign in to comment.