diff options
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index d4a356b11636..0f628a29d833 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -1244,13 +1244,13 @@ generate_new: | |||
1244 | 1244 | ||
1245 | static void handle_irq_tbtt_indication(struct b43_wldev *dev) | 1245 | static void handle_irq_tbtt_indication(struct b43_wldev *dev) |
1246 | { | 1246 | { |
1247 | if (b43_is_mode(dev->wl, IEEE80211_IF_TYPE_AP)) { | 1247 | if (b43_is_mode(dev->wl, NL80211_IFTYPE_AP)) { |
1248 | ///TODO: PS TBTT | 1248 | ///TODO: PS TBTT |
1249 | } else { | 1249 | } else { |
1250 | if (1 /*FIXME: the last PSpoll frame was sent successfully */ ) | 1250 | if (1 /*FIXME: the last PSpoll frame was sent successfully */ ) |
1251 | b43_power_saving_ctl_bits(dev, 0); | 1251 | b43_power_saving_ctl_bits(dev, 0); |
1252 | } | 1252 | } |
1253 | if (b43_is_mode(dev->wl, IEEE80211_IF_TYPE_IBSS)) | 1253 | if (b43_is_mode(dev->wl, NL80211_IFTYPE_ADHOC)) |
1254 | dev->dfq_valid = 1; | 1254 | dev->dfq_valid = 1; |
1255 | } | 1255 | } |
1256 | 1256 | ||
@@ -1599,8 +1599,8 @@ static void handle_irq_beacon(struct b43_wldev *dev) | |||
1599 | struct b43_wl *wl = dev->wl; | 1599 | struct b43_wl *wl = dev->wl; |
1600 | u32 cmd, beacon0_valid, beacon1_valid; | 1600 | u32 cmd, beacon0_valid, beacon1_valid; |
1601 | 1601 | ||
1602 | if (!b43_is_mode(wl, IEEE80211_IF_TYPE_AP) && | 1602 | if (!b43_is_mode(wl, NL80211_IFTYPE_AP) && |
1603 | !b43_is_mode(wl, IEEE80211_IF_TYPE_MESH_POINT)) | 1603 | !b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT)) |
1604 | return; | 1604 | return; |
1605 | 1605 | ||
1606 | /* This is the bottom half of the asynchronous beacon update. */ | 1606 | /* This is the bottom half of the asynchronous beacon update. */ |
@@ -2568,10 +2568,10 @@ static void b43_adjust_opmode(struct b43_wldev *dev) | |||
2568 | ctl &= ~B43_MACCTL_BEACPROMISC; | 2568 | ctl &= ~B43_MACCTL_BEACPROMISC; |
2569 | ctl |= B43_MACCTL_INFRA; | 2569 | ctl |= B43_MACCTL_INFRA; |
2570 | 2570 | ||
2571 | if (b43_is_mode(wl, IEEE80211_IF_TYPE_AP) || | 2571 | if (b43_is_mode(wl, NL80211_IFTYPE_AP) || |
2572 | b43_is_mode(wl, IEEE80211_IF_TYPE_MESH_POINT)) | 2572 | b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT)) |
2573 | ctl |= B43_MACCTL_AP; | 2573 | ctl |= B43_MACCTL_AP; |
2574 | else if (b43_is_mode(wl, IEEE80211_IF_TYPE_IBSS)) | 2574 | else if (b43_is_mode(wl, NL80211_IFTYPE_ADHOC)) |
2575 | ctl &= ~B43_MACCTL_INFRA; | 2575 | ctl &= ~B43_MACCTL_INFRA; |
2576 | 2576 | ||
2577 | if (wl->filter_flags & FIF_CONTROL) | 2577 | if (wl->filter_flags & FIF_CONTROL) |
@@ -3406,8 +3406,8 @@ static int b43_op_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf) | |||
3406 | phy->ops->set_rx_antenna(dev, antenna); | 3406 | phy->ops->set_rx_antenna(dev, antenna); |
3407 | 3407 | ||
3408 | /* Update templates for AP/mesh mode. */ | 3408 | /* Update templates for AP/mesh mode. */ |
3409 | if (b43_is_mode(wl, IEEE80211_IF_TYPE_AP) || | 3409 | if (b43_is_mode(wl, NL80211_IFTYPE_AP) || |
3410 | b43_is_mode(wl, IEEE80211_IF_TYPE_MESH_POINT)) | 3410 | b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT)) |
3411 | b43_set_beacon_int(dev, conf->beacon_int); | 3411 | b43_set_beacon_int(dev, conf->beacon_int); |
3412 | 3412 | ||
3413 | if (!!conf->radio_enabled != phy->radio_on) { | 3413 | if (!!conf->radio_enabled != phy->radio_on) { |
@@ -3595,14 +3595,14 @@ static int b43_op_config_interface(struct ieee80211_hw *hw, | |||
3595 | else | 3595 | else |
3596 | memset(wl->bssid, 0, ETH_ALEN); | 3596 | memset(wl->bssid, 0, ETH_ALEN); |
3597 | if (b43_status(dev) >= B43_STAT_INITIALIZED) { | 3597 | if (b43_status(dev) >= B43_STAT_INITIALIZED) { |
3598 | if (b43_is_mode(wl, IEEE80211_IF_TYPE_AP) || | 3598 | if (b43_is_mode(wl, NL80211_IFTYPE_AP) || |
3599 | b43_is_mode(wl, IEEE80211_IF_TYPE_MESH_POINT)) { | 3599 | b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT)) { |
3600 | B43_WARN_ON(vif->type != wl->if_type); | 3600 | B43_WARN_ON(vif->type != wl->if_type); |
3601 | if (conf->changed & IEEE80211_IFCC_SSID) | 3601 | if (conf->changed & IEEE80211_IFCC_SSID) |
3602 | b43_set_ssid(dev, conf->ssid, conf->ssid_len); | 3602 | b43_set_ssid(dev, conf->ssid, conf->ssid_len); |
3603 | if (conf->changed & IEEE80211_IFCC_BEACON) | 3603 | if (conf->changed & IEEE80211_IFCC_BEACON) |
3604 | b43_update_templates(wl); | 3604 | b43_update_templates(wl); |
3605 | } else if (b43_is_mode(wl, IEEE80211_IF_TYPE_IBSS)) { | 3605 | } else if (b43_is_mode(wl, NL80211_IFTYPE_ADHOC)) { |
3606 | if (conf->changed & IEEE80211_IFCC_BEACON) | 3606 | if (conf->changed & IEEE80211_IFCC_BEACON) |
3607 | b43_update_templates(wl); | 3607 | b43_update_templates(wl); |
3608 | } | 3608 | } |
@@ -3903,7 +3903,7 @@ static void b43_set_synth_pu_delay(struct b43_wldev *dev, bool idle) | |||
3903 | pu_delay = 3700; | 3903 | pu_delay = 3700; |
3904 | else | 3904 | else |
3905 | pu_delay = 1050; | 3905 | pu_delay = 1050; |
3906 | if (b43_is_mode(dev->wl, IEEE80211_IF_TYPE_IBSS) || idle) | 3906 | if (b43_is_mode(dev->wl, NL80211_IFTYPE_ADHOC) || idle) |
3907 | pu_delay = 500; | 3907 | pu_delay = 500; |
3908 | if ((dev->phy.radio_ver == 0x2050) && (dev->phy.radio_rev == 8)) | 3908 | if ((dev->phy.radio_ver == 0x2050) && (dev->phy.radio_rev == 8)) |
3909 | pu_delay = max(pu_delay, (u16)2400); | 3909 | pu_delay = max(pu_delay, (u16)2400); |
@@ -3917,7 +3917,7 @@ static void b43_set_pretbtt(struct b43_wldev *dev) | |||
3917 | u16 pretbtt; | 3917 | u16 pretbtt; |
3918 | 3918 | ||
3919 | /* The time value is in microseconds. */ | 3919 | /* The time value is in microseconds. */ |
3920 | if (b43_is_mode(dev->wl, IEEE80211_IF_TYPE_IBSS)) { | 3920 | if (b43_is_mode(dev->wl, NL80211_IFTYPE_ADHOC)) { |
3921 | pretbtt = 2; | 3921 | pretbtt = 2; |
3922 | } else { | 3922 | } else { |
3923 | if (dev->phy.type == B43_PHYTYPE_A) | 3923 | if (dev->phy.type == B43_PHYTYPE_A) |
@@ -4084,11 +4084,11 @@ static int b43_op_add_interface(struct ieee80211_hw *hw, | |||
4084 | 4084 | ||
4085 | /* TODO: allow WDS/AP devices to coexist */ | 4085 | /* TODO: allow WDS/AP devices to coexist */ |
4086 | 4086 | ||
4087 | if (conf->type != IEEE80211_IF_TYPE_AP && | 4087 | if (conf->type != NL80211_IFTYPE_AP && |
4088 | conf->type != IEEE80211_IF_TYPE_MESH_POINT && | 4088 | conf->type != NL80211_IFTYPE_MESH_POINT && |
4089 | conf->type != IEEE80211_IF_TYPE_STA && | 4089 | conf->type != NL80211_IFTYPE_STATION && |
4090 | conf->type != IEEE80211_IF_TYPE_WDS && | 4090 | conf->type != NL80211_IFTYPE_WDS && |
4091 | conf->type != IEEE80211_IF_TYPE_IBSS) | 4091 | conf->type != NL80211_IFTYPE_ADHOC) |
4092 | return -EOPNOTSUPP; | 4092 | return -EOPNOTSUPP; |
4093 | 4093 | ||
4094 | mutex_lock(&wl->mutex); | 4094 | mutex_lock(&wl->mutex); |
@@ -4234,7 +4234,8 @@ out_unlock: | |||
4234 | return err; | 4234 | return err; |
4235 | } | 4235 | } |
4236 | 4236 | ||
4237 | static int b43_op_beacon_set_tim(struct ieee80211_hw *hw, int aid, int set) | 4237 | static int b43_op_beacon_set_tim(struct ieee80211_hw *hw, |
4238 | struct ieee80211_sta *sta, bool set) | ||
4238 | { | 4239 | { |
4239 | struct b43_wl *wl = hw_to_b43_wl(hw); | 4240 | struct b43_wl *wl = hw_to_b43_wl(hw); |
4240 | unsigned long flags; | 4241 | unsigned long flags; |
@@ -4249,7 +4250,7 @@ static int b43_op_beacon_set_tim(struct ieee80211_hw *hw, int aid, int set) | |||
4249 | static void b43_op_sta_notify(struct ieee80211_hw *hw, | 4250 | static void b43_op_sta_notify(struct ieee80211_hw *hw, |
4250 | struct ieee80211_vif *vif, | 4251 | struct ieee80211_vif *vif, |
4251 | enum sta_notify_cmd notify_cmd, | 4252 | enum sta_notify_cmd notify_cmd, |
4252 | const u8 *addr) | 4253 | struct ieee80211_sta *sta) |
4253 | { | 4254 | { |
4254 | struct b43_wl *wl = hw_to_b43_wl(hw); | 4255 | struct b43_wl *wl = hw_to_b43_wl(hw); |
4255 | 4256 | ||