diff options
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 0d5e3fee8e53..dac02d001ef0 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -1828,7 +1828,8 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
1828 | } | 1828 | } |
1829 | 1829 | ||
1830 | sta->dev = dev; | 1830 | sta->dev = dev; |
1831 | sta->flags |= WLAN_STA_AUTH | WLAN_STA_ASSOC | WLAN_STA_ASSOC_AP; | 1831 | sta->flags |= WLAN_STA_AUTH | WLAN_STA_ASSOC | WLAN_STA_ASSOC_AP | |
1832 | WLAN_STA_AUTHORIZED; | ||
1832 | 1833 | ||
1833 | rates = 0; | 1834 | rates = 0; |
1834 | basic_rates = 0; | 1835 | basic_rates = 0; |
@@ -3791,6 +3792,8 @@ struct sta_info * ieee80211_ibss_add_sta(struct net_device *dev, | |||
3791 | if (!sta) | 3792 | if (!sta) |
3792 | return NULL; | 3793 | return NULL; |
3793 | 3794 | ||
3795 | sta->flags |= WLAN_STA_AUTHORIZED; | ||
3796 | |||
3794 | sta->supp_rates[local->hw.conf.channel->band] = | 3797 | sta->supp_rates[local->hw.conf.channel->band] = |
3795 | sdata->u.sta.supp_rates_bits[local->hw.conf.channel->band]; | 3798 | sdata->u.sta.supp_rates_bits[local->hw.conf.channel->band]; |
3796 | 3799 | ||