mlme.c (c9d3245e03ce20566e373b68dd24a7f2365d8dda) | mlme.c (bd718fc11d5b184701e7fd8302033e31a3a03ba8) |
---|---|
1/* 2 * BSS client mode implementation 3 * Copyright 2003-2008, Jouni Malinen <j@w1.fi> 4 * Copyright 2004, Instant802 Networks, Inc. 5 * Copyright 2005, Devicescape Software, Inc. 6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2007, Michael Wu <flamingice@sourmilk.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH --- 4941 unchanged lines hidden (view full) --- 4950 * we can connect -- with a warning. 4951 */ 4952 if (!basic_rates && min_rate_index >= 0) { 4953 sdata_info(sdata, 4954 "No basic rates, using min rate instead\n"); 4955 basic_rates = BIT(min_rate_index); 4956 } 4957 | 1/* 2 * BSS client mode implementation 3 * Copyright 2003-2008, Jouni Malinen <j@w1.fi> 4 * Copyright 2004, Instant802 Networks, Inc. 5 * Copyright 2005, Devicescape Software, Inc. 6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2007, Michael Wu <flamingice@sourmilk.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH --- 4941 unchanged lines hidden (view full) --- 4950 * we can connect -- with a warning. 4951 */ 4952 if (!basic_rates && min_rate_index >= 0) { 4953 sdata_info(sdata, 4954 "No basic rates, using min rate instead\n"); 4955 basic_rates = BIT(min_rate_index); 4956 } 4957 |
4958 new_sta->sta.supp_rates[cbss->channel->band] = rates; | 4958 if (rates) 4959 new_sta->sta.supp_rates[cbss->channel->band] = rates; 4960 else 4961 sdata_info(sdata, 4962 "No rates found, keeping mandatory only\n"); 4963 |
4959 sdata->vif.bss_conf.basic_rates = basic_rates; 4960 4961 /* cf. IEEE 802.11 9.2.12 */ 4962 if (cbss->channel->band == NL80211_BAND_2GHZ && 4963 have_higher_than_11mbit) 4964 sdata->flags |= IEEE80211_SDATA_OPERATING_GMODE; 4965 else 4966 sdata->flags &= ~IEEE80211_SDATA_OPERATING_GMODE; --- 698 unchanged lines hidden --- | 4964 sdata->vif.bss_conf.basic_rates = basic_rates; 4965 4966 /* cf. IEEE 802.11 9.2.12 */ 4967 if (cbss->channel->band == NL80211_BAND_2GHZ && 4968 have_higher_than_11mbit) 4969 sdata->flags |= IEEE80211_SDATA_OPERATING_GMODE; 4970 else 4971 sdata->flags &= ~IEEE80211_SDATA_OPERATING_GMODE; --- 698 unchanged lines hidden --- |