mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
mac80211: Modify sta_get_rates to give basic rates
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com> Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
657c3e0c41
commit
9ebb61a23d
5 changed files with 23 additions and 11 deletions
|
@ -465,6 +465,7 @@ void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata, struct ieee80211_m
|
|||
bool deactivated, matches_local = true;
|
||||
u8 ie_len;
|
||||
u8 *baseaddr;
|
||||
u32 rates, basic_rates = 0;
|
||||
__le16 plid, llid, reason;
|
||||
#ifdef CONFIG_MAC80211_VERBOSE_MPL_DEBUG
|
||||
static const char *mplstates[] = {
|
||||
|
@ -559,6 +560,9 @@ void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata, struct ieee80211_m
|
|||
|
||||
/* Now we will figure out the appropriate event... */
|
||||
event = PLINK_UNDEFINED;
|
||||
rates = ieee80211_sta_get_rates(local, &elems,
|
||||
rx_status->band, &basic_rates);
|
||||
|
||||
if (ftype != WLAN_SP_MESH_PEERING_CLOSE &&
|
||||
(!mesh_matches_local(&elems, sdata))) {
|
||||
matches_local = false;
|
||||
|
@ -583,7 +587,6 @@ void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata, struct ieee80211_m
|
|||
return;
|
||||
} else if (!sta) {
|
||||
/* ftype == WLAN_SP_MESH_PEERING_OPEN */
|
||||
u32 rates;
|
||||
|
||||
rcu_read_unlock();
|
||||
|
||||
|
@ -591,8 +594,6 @@ void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata, struct ieee80211_m
|
|||
mpl_dbg("Mesh plink error: no more free plinks\n");
|
||||
return;
|
||||
}
|
||||
|
||||
rates = ieee80211_sta_get_rates(local, &elems, rx_status->band);
|
||||
sta = mesh_plink_alloc(sdata, mgmt->sa, rates, &elems);
|
||||
if (!sta) {
|
||||
mpl_dbg("Mesh plink error: plink table full\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue