Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111282
b: refs/heads/master
c: 19b73c7
h: refs/heads/master
v: v3
  • Loading branch information
Sujith authored and John W. Linville committed Aug 29, 2008
1 parent 7101839 commit 9fbe481
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 37 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: 60653678939dcbba3aa936250b58179aa3451eee
refs/heads/master: 19b73c7f68fb2eeb180eafa70f9859409ec9aa08
13 changes: 0 additions & 13 deletions trunk/drivers/net/wireless/ath9k/ath9k.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,6 @@ enum ath9k_cipher {
#define CTL_5GHT40 8

#define AR_EEPROM_MAC(i) (0x1d+(i))
#define EEP_SCALE 100
#define EEP_DELTA 10

#define AR_EEPROM_RFSILENT_GPIO_SEL 0x001c
#define AR_EEPROM_RFSILENT_GPIO_SEL_S 2
Expand Down Expand Up @@ -606,9 +604,6 @@ struct ath9k_country_entry {
#define REG_CLR_BIT(_a, _r, _f) \
REG_WRITE(_a, _r, REG_READ(_a, _r) & ~_f)

#define ATH9K_COMP_BUF_MAX_SIZE 9216
#define ATH9K_COMP_BUF_ALIGN_SIZE 512

#define ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS 0x00000001

#define INIT_AIFS 2
Expand Down Expand Up @@ -637,7 +632,6 @@ struct ath9k_country_entry {
IEEE80211_WEP_KIDLEN + \
IEEE80211_WEP_CRCLEN))

#define MAX_REG_ADD_COUNT 129
#define MAX_RATE_POWER 63

enum ath9k_power_mode {
Expand Down Expand Up @@ -707,13 +701,6 @@ enum phytype {
};
#define PHY_CCK PHY_DS

enum start_adhoc_option {
START_ADHOC_NO_11A,
START_ADHOC_PER_11D,
START_ADHOC_IN_11A,
START_ADHOC_IN_11B,
};

enum ath9k_tp_scale {
ATH9K_TP_SCALE_MAX = 0,
ATH9K_TP_SCALE_50,
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/net/wireless/ath9k/beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,6 @@ void ath_beacon_free(struct ath_softc *sc)

void ath9k_beacon_tasklet(unsigned long data)
{
#define TSF_TO_TU(_h,_l) \
((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))

struct ath_softc *sc = (struct ath_softc *)data;
struct ath_hal *ah = sc->sc_ah;
struct ath_buf *bf = NULL;
Expand Down Expand Up @@ -715,7 +712,6 @@ void ath9k_beacon_tasklet(unsigned long data)

sc->ast_be_xmit += bc; /* XXX per-vap? */
}
#undef TSF_TO_TU
}

/*
Expand Down Expand Up @@ -751,8 +747,6 @@ void ath_bstuck_process(struct ath_softc *sc)

void ath_beacon_config(struct ath_softc *sc, int if_id)
{
#define TSF_TO_TU(_h,_l) \
((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))
struct ath_hal *ah = sc->sc_ah;
u32 nexttbtt, intval;
struct ath_beacon_config conf;
Expand Down Expand Up @@ -975,7 +969,6 @@ void ath_beacon_config(struct ath_softc *sc, int if_id)
(ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL))
ath_beacon_start_adhoc(sc, 0);
}
#undef TSF_TO_TU
}

/* Function to collect beacon rssi data and resync beacon if necessary */
Expand Down
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/ath9k/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ struct ath_node;
} \
} while (0)

#define TSF_TO_TU(_h,_l) \
((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))

/* XXX: remove */
#define memzero(_buf, _len) memset(_buf, 0, _len)

Expand Down Expand Up @@ -382,10 +385,10 @@ int ath_rx_input(struct ath_softc *sc,
struct sk_buff *skb,
struct ath_recv_status *rx_status,
enum ATH_RX_TYPE *status);
int ath__rx_indicate(struct ath_softc *sc,
struct sk_buff *skb,
struct ath_recv_status *status,
u16 keyix);
int _ath_rx_indicate(struct ath_softc *sc,
struct sk_buff *skb,
struct ath_recv_status *status,
u16 keyix);
int ath_rx_subframe(struct ath_node *an, struct sk_buff *skb,
struct ath_recv_status *status);

Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
ath_node_put(sc, an, ATH9K_BH_STATUS_CHANGE);
}

int ath__rx_indicate(struct ath_softc *sc,
int _ath_rx_indicate(struct ath_softc *sc,
struct sk_buff *skb,
struct ath_recv_status *status,
u16 keyix)
Expand All @@ -1119,9 +1119,6 @@ int ath__rx_indicate(struct ath_softc *sc,
skb_pull(skb, padsize);
}

/* remove FCS before passing up to protocol stack */
skb_trim(skb, (skb->len - FCS_LEN));

/* Prepare rx status */
ath9k_rx_prepare(sc, skb, status, &rx_status);

Expand Down Expand Up @@ -1364,7 +1361,8 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
goto bad2;
}

hw->flags = IEEE80211_HW_SIGNAL_DBM |
hw->flags = IEEE80211_HW_RX_INCLUDES_FCS |
IEEE80211_HW_SIGNAL_DBM |
IEEE80211_HW_NOISE_DBM;

SET_IEEE80211_DEV(hw, &pdev->dev);
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/ath9k/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
#define PHY_H

bool ath9k_hw_ar9280_set_channel(struct ath_hal *ah,
struct ath9k_channel
*chan);
struct ath9k_channel
*chan);
bool ath9k_hw_set_channel(struct ath_hal *ah,
struct ath9k_channel *chan);
struct ath9k_channel *chan);
void ath9k_hw_write_regs(struct ath_hal *ah, u32 modesIndex,
u32 freqIndex, int regWrites);
bool ath9k_hw_set_rf_regs(struct ath_hal *ah,
struct ath9k_channel *chan,
u16 modesIndex);
struct ath9k_channel *chan,
u16 modesIndex);
void ath9k_hw_decrease_chain_power(struct ath_hal *ah,
struct ath9k_channel *chan);
bool ath9k_hw_init_rf(struct ath_hal *ah,
int *status);
int *status);

#define AR_PHY_BASE 0x9800
#define AR_PHY(_n) (AR_PHY_BASE + ((_n)<<2))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ath9k/recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static int ath_rx_indicate(struct ath_softc *sc,
int type;

/* indicate frame to the stack, which will free the old skb. */
type = ath__rx_indicate(sc, skb, status, keyix);
type = _ath_rx_indicate(sc, skb, status, keyix);

/* allocate a new skb and queue it to for H/W processing */
nskb = ath_rxbuf_alloc(sc, sc->sc_rxbufsize);
Expand Down

0 comments on commit 9fbe481

Please sign in to comment.