Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215316
b: refs/heads/master
c: e5c407f
h: refs/heads/master
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Oct 11, 2010
1 parent 6f6892d commit db93c99
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 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: a656b6a9665dce09a8f273091f1b4aa3d5cec721
refs/heads/master: e5c407f970ea2977600eb54cf4cc8a67a44fefeb
4 changes: 3 additions & 1 deletion trunk/drivers/net/wireless/b43/phy_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define LINUX_B43_PHY_COMMON_H_

#include <linux/types.h>
#include <linux/nl80211.h>

struct b43_wldev;

Expand Down Expand Up @@ -250,8 +251,9 @@ struct b43_phy {
* check is needed. */
unsigned long next_txpwr_check_time;

/* current channel */
/* Current channel */
unsigned int channel;
enum nl80211_channel_type channel_type;

/* PHY TX errors counter. */
atomic_t txerr_cnt;
Expand Down
14 changes: 10 additions & 4 deletions trunk/drivers/net/wireless/b43/phy_n.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ static void b43_nphy_rf_control_override(struct b43_wldev *dev, u16 field,
static void b43_nphy_rf_control_intc_override(struct b43_wldev *dev, u8 field,
u16 value, u8 core);

static inline bool b43_channel_type_is_40mhz(
enum nl80211_channel_type channel_type)
{
return (channel_type == NL80211_CHAN_HT40MINUS ||
channel_type == NL80211_CHAN_HT40PLUS);
}

static inline bool b43_empty_chanspec(struct b43_chanspec *chanspec)
{
return !chanspec->channel && !chanspec->sideband &&
Expand Down Expand Up @@ -3404,10 +3411,9 @@ static int b43_nphy_set_channel(struct b43_wldev *dev,

nphy->radio_chanspec.channel = channel->hw_value;

/*
if (chanspec.b_width != nphy->b_width)
; TODO: BMAC BW Set (chanspec.b_width)
*/
if (b43_channel_type_is_40mhz(phy->channel_type) !=
b43_channel_type_is_40mhz(channel_type))
; /* TODO: BMAC BW Set (channel_type) */

if (channel_type == NL80211_CHAN_HT40PLUS)
b43_phy_set(dev, B43_NPHY_RXCTL,
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/b43/phy_n.h
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,6 @@ struct b43_phy_n {
u16 papd_epsilon_offset[2];
s32 preamble_override;
u32 bb_mult_save;
u8 b_width;
struct b43_chanspec radio_chanspec;

bool gain_boost;
Expand Down

0 comments on commit db93c99

Please sign in to comment.