aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
diff options
context:
space:
mode:
authorMichael Buesch <mbuesch@freenet.de>2006-03-13 13:27:34 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-03-27 11:19:37 -0500
commite9357c056c5e62516f0044e60591d41f00ca7cfa (patch)
treea5dc842a43db15403207f1d763df008fb43cb8e6 /drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
parentaae3778176ec7a57b1c4f539b7252acfd7d99a1b (diff)
[PATCH] bcm43xx: reduce the size of bcm43xx_private by removing unneeded members.
Signed-off-by: Michael Buesch <mbuesch@freenet.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_xmit.c')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_xmit.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c b/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
index 5ee572e79f61..c4809da8e9c7 100644
--- a/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
+++ b/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
@@ -284,7 +284,7 @@ void bcm43xx_generate_txhdr(struct bcm43xx_private *bcm,
284 const int is_first_fragment, 284 const int is_first_fragment,
285 const u16 cookie) 285 const u16 cookie)
286{ 286{
287 const struct bcm43xx_phyinfo *phy = bcm->current_core->phy; 287 const struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm);
288 const struct ieee80211_hdr_4addr *wireless_header = (const struct ieee80211_hdr_4addr *)fragment_data; 288 const struct ieee80211_hdr_4addr *wireless_header = (const struct ieee80211_hdr_4addr *)fragment_data;
289 const struct ieee80211_security *secinfo = &bcm->ieee->sec; 289 const struct ieee80211_security *secinfo = &bcm->ieee->sec;
290 u8 bitrate; 290 u8 bitrate;
@@ -382,8 +382,8 @@ static s8 bcm43xx_rssi_postprocess(struct bcm43xx_private *bcm,
382 u8 in_rssi, int ofdm, 382 u8 in_rssi, int ofdm,
383 int adjust_2053, int adjust_2050) 383 int adjust_2053, int adjust_2050)
384{ 384{
385 struct bcm43xx_radioinfo *radio = bcm->current_core->radio; 385 struct bcm43xx_radioinfo *radio = bcm43xx_current_radio(bcm);
386 struct bcm43xx_phyinfo *phy = bcm->current_core->phy; 386 struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm);
387 s32 tmp; 387 s32 tmp;
388 388
389 switch (radio->version) { 389 switch (radio->version) {
@@ -442,7 +442,7 @@ static s8 bcm43xx_rssi_postprocess(struct bcm43xx_private *bcm,
442static s8 bcm43xx_rssinoise_postprocess(struct bcm43xx_private *bcm, 442static s8 bcm43xx_rssinoise_postprocess(struct bcm43xx_private *bcm,
443 u8 in_rssi) 443 u8 in_rssi)
444{ 444{
445 struct bcm43xx_phyinfo *phy = bcm->current_core->phy; 445 struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm);
446 s8 ret; 446 s8 ret;
447 447
448 if (phy->type == BCM43xx_PHYTYPE_A) { 448 if (phy->type == BCM43xx_PHYTYPE_A) {
@@ -458,6 +458,8 @@ int bcm43xx_rx(struct bcm43xx_private *bcm,
458 struct sk_buff *skb, 458 struct sk_buff *skb,
459 struct bcm43xx_rxhdr *rxhdr) 459 struct bcm43xx_rxhdr *rxhdr)
460{ 460{
461 struct bcm43xx_radioinfo *radio = bcm43xx_current_radio(bcm);
462 struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm);
461 struct bcm43xx_plcp_hdr4 *plcp; 463 struct bcm43xx_plcp_hdr4 *plcp;
462 struct ieee80211_rx_stats stats; 464 struct ieee80211_rx_stats stats;
463 struct ieee80211_hdr_4addr *wlhdr; 465 struct ieee80211_hdr_4addr *wlhdr;
@@ -494,13 +496,13 @@ int bcm43xx_rx(struct bcm43xx_private *bcm,
494 else 496 else
495 stats.rate = bcm43xx_plcp_get_bitrate_cck(plcp); 497 stats.rate = bcm43xx_plcp_get_bitrate_cck(plcp);
496//printk("RX ofdm %d, rate == %u\n", is_ofdm, stats.rate); 498//printk("RX ofdm %d, rate == %u\n", is_ofdm, stats.rate);
497 stats.received_channel = bcm->current_core->radio->channel; 499 stats.received_channel = radio->channel;
498//TODO stats.control = 500//TODO stats.control =
499 stats.mask = IEEE80211_STATMASK_SIGNAL | 501 stats.mask = IEEE80211_STATMASK_SIGNAL |
500//TODO IEEE80211_STATMASK_NOISE | 502//TODO IEEE80211_STATMASK_NOISE |
501 IEEE80211_STATMASK_RATE | 503 IEEE80211_STATMASK_RATE |
502 IEEE80211_STATMASK_RSSI; 504 IEEE80211_STATMASK_RSSI;
503 if (bcm->current_core->phy->type == BCM43xx_PHYTYPE_A) 505 if (phy->type == BCM43xx_PHYTYPE_A)
504 stats.freq = IEEE80211_52GHZ_BAND; 506 stats.freq = IEEE80211_52GHZ_BAND;
505 else 507 else
506 stats.freq = IEEE80211_24GHZ_BAND; 508 stats.freq = IEEE80211_24GHZ_BAND;