v3 HT support for mesh
cover v3 HT support for mesh
This patchset adds basic HT support for mesh nodes. We avoid the question of how to negotiate channel types, by simply disallowing peering with mismatched HT modes.
Many thanks to Luis Rodriguez for his assistance, and Ashok Nagarajan for co-authoring this patchset.
v2:
Remove outdated BA comments (Christian)
v3:
Guido R. Hiertz was kind enough to point out:
"IEEE 802.11s-2011 states that mesh STAs use the default EDCA parameter set only. Clause 9.1.3.1 in 802.11s-2011 reads: "When communicating within a BSS, the EDCA parameters used are […] from the default values for the parameters […] when the STA is a mesh STA." Thus, all mesh STAs use the same (default) EDCA parameter set."
So resubmitting without the WMM patches.
Alexander Simon (1):
mac80211: Add HT helper functions
Thomas Pedersen (4):
mac80211: comment allocation of mesh frames
mac80211: add HT IEs to mesh frames
mac80211: set HT capabilities for mesh peer
mac80211: allow frame aggregation for mesh
net/mac80211/agg-rx.c | 3 +- net/mac80211/agg-tx.c | 10 +--- net/mac80211/ht.c | 3 +- net/mac80211/ieee80211_i.h | 8 +++ net/mac80211/mesh.c | 70 +++++++++++++++++++++++--- net/mac80211/mesh.h | 4 ++ net/mac80211/mesh_hwmp.c | 36 +++++++------- net/mac80211/mesh_plink.c | 50 ++++++++++++++----- net/mac80211/rx.c | 7 +-- net/mac80211/tx.c | 23 ++++++-- net/mac80211/util.c | 116 +++++++++++++++++++++++++++++++++++++------ net/mac80211/work.c | 29 +----------- 12 files changed, 252 insertions(+), 107 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/5 mac80211: comment allocation of mesh frames
Remove most references to magic numbers, save a few bytes and hopefully improve readability.
--- net/mac80211/mesh_hwmp.c | 36 ++++++++++++++++++------------------ net/mac80211/mesh_plink.c | 28 +++++++++++++++++----------- net/mac80211/tx.c | 19 +++++++++++++------ 3 files changed, 48 insertions(+), 35 deletions(-)
net/mac80211/mesh_hwmp.c +18 -18
@@ -113,20 +113,20 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, struct ieee80211_sub_if_data *sdata) {struct ieee80211_local *local = sdata->local; -struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 ); +struct sk_buff *skb;struct ieee80211_mgmt *mgmt; -u8 *pos; -int ie_len; +u8 *pos, ie_len; + int hdr_len = offsetof(struct ieee80211_mgmt, u.action.u.mesh_action) + +sizeof (mgmt->u.action.u.mesh_action); + skb =dev_alloc_skb (local->hw.extra_tx_headroom + + hdr_len + +2 +37 );/* max HWMP IE */ if (!skb)return -1 ;skb_reserve (skb, local->hw.extra_tx_headroom); -/* 25 is the size of the common mgmt part (24) plus the size of the -* common action part (1) -*/ - mgmt = (struct ieee80211_mgmt *) -skb_put (skb,25 +sizeof (mgmt->u.action.u.mesh_action)); -memset (mgmt,0 ,25 +sizeof (mgmt->u.action.u.mesh_action)); + mgmt = (struct ieee80211_mgmt *)skb_put (skb, hdr_len); +memset (mgmt,0 , hdr_len); mgmt->frame_control =cpu_to_le16 (IEEE80211_FTYPE_MGMT |IEEE80211_STYPE_ACTION );
@@ -240,20 +240,20 @@ int mesh_path_error_tx(u8 ttl, u8 *target, __le32 target_sn, struct ieee80211_sub_if_data *sdata) {struct ieee80211_local *local = sdata->local; -struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 ); +struct sk_buff *skb;struct ieee80211_mgmt *mgmt; -u8 *pos; -int ie_len; +u8 *pos, ie_len; + int hdr_len = offsetof(struct ieee80211_mgmt, u.action.u.mesh_action) + +sizeof (mgmt->u.action.u.mesh_action); + skb =dev_alloc_skb (local->hw.extra_tx_headroom + + hdr_len + +2 +15 /* PERR IE */ );if (!skb)return -1 ;skb_reserve (skb, local->tx_headroom + local->hw.extra_tx_headroom); -/* 25 is the size of the common mgmt part (24) plus the size of the -* common action part (1) -*/ - mgmt = (struct ieee80211_mgmt *) -skb_put (skb,25 +sizeof (mgmt->u.action.u.mesh_action)); -memset (mgmt,0 ,25 +sizeof (mgmt->u.action.u.mesh_action)); + mgmt = (struct ieee80211_mgmt *)skb_put (skb, hdr_len); +memset (mgmt,0 , hdr_len); mgmt->frame_control =cpu_to_le16 (IEEE80211_FTYPE_MGMT |IEEE80211_STYPE_ACTION );
net/mac80211/mesh_plink.c +17 -11
@@ -153,23 +153,29 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata,enum ieee80211_self_protected_actioncode action, u8 *da, __le16 llid, __le16 plid, __le16 reason) { struct ieee80211_local *local = sdata->local; -struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 + - sdata->u.mesh.ie_len); +struct sk_buff *skb;struct ieee80211_mgmt *mgmt;bool include_plid = false; -int ie_len =4 ;u16 peering_proto =0 ; -u8 *pos; - +u8 *pos, ie_len =4 ; + int hdr_len = offsetof(struct ieee80211_mgmt, u.action.u.self_prot) + +sizeof (mgmt->u.action.u.self_prot); + + skb =dev_alloc_skb (local->hw.extra_tx_headroom + + hdr_len + +2 +/* capability info */ +2 +/* AID */ +2 +8 +/* supported rates */ +2 + (IEEE80211_MAX_SUPP_RATES -8 ) + +2 + sdata->u.mesh.mesh_id_len + +2 +sizeof (struct ieee80211_meshconf_ie ) + +2 +8 +/* peering IE */ + sdata->u.mesh.ie_len);if (!skb)return -1 ;skb_reserve (skb, local->hw.extra_tx_headroom); -/* 25 is the size of the common mgmt part (24) plus the size of the -* common action part (1) -*/ - mgmt = (struct ieee80211_mgmt *) -skb_put (skb,25 +sizeof (mgmt->u.action.u.self_prot)); -memset (mgmt,0 ,25 +sizeof (mgmt->u.action.u.self_prot)); + mgmt = (struct ieee80211_mgmt *)skb_put (skb, hdr_len); +memset (mgmt,0 , hdr_len); mgmt->frame_control =cpu_to_le16 (IEEE80211_FTYPE_MGMT |IEEE80211_STYPE_ACTION );memcpy (mgmt->da, da,ETH_ALEN );
net/mac80211/tx.c +13 -6
@@ -2278,22 +2278,29 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, }else if (ieee80211_vif_is_mesh (&sdata->vif)) {struct ieee80211_mgmt *mgmt;u8 *pos; + int hdr_len = offsetof(struct ieee80211_mgmt, u.beacon) + +sizeof (mgmt->u.beacon);#ifdef CONFIG_MAC80211_MESH if (!sdata->u.mesh.mesh_id_len) goto out;#endif -/* headroom, head length, tail length and maximum TIM length */ - skb =dev_alloc_skb (local->tx_headroom +400 + - sdata->u.mesh.ie_len); + skb =dev_alloc_skb (local->tx_headroom + + hdr_len + +2 +/* NULL SSID */ +2 +8 +/* supported rates */ +2 +3 +/* DS params */ +2 + (IEEE80211_MAX_SUPP_RATES -8 ) + +2 + sdata->u.mesh.mesh_id_len + +2 +sizeof (struct ieee80211_meshconf_ie ) + + sdata->u.mesh.ie_len);if (!skb) goto out;skb_reserve (skb, local->hw.extra_tx_headroom); - mgmt = (struct ieee80211_mgmt *) -skb_put (skb,24 +sizeof (mgmt->u.beacon)); -memset (mgmt,0 ,24 +sizeof (mgmt->u.beacon)); + mgmt = (struct ieee80211_mgmt *)skb_put (skb, hdr_len); +memset (mgmt,0 , hdr_len); mgmt->frame_control =cpu_to_le16 (IEEE80211_FTYPE_MGMT |IEEE80211_STYPE_BEACON );memset (mgmt->da,0xff ,ETH_ALEN );
Signature · 1 line
1.7.5.4
PATCH 2/5 mac80211: Add HT helper functions
In reply to Thomas PedersenFrom: Alexander Simon <[email protected]>
Some refactoring for IBSS HT.
Move HT info and capability IEs building code into separate functions.
Add function to get the channel type from an HT info IE.
--- net/mac80211/ieee80211_i.h | 8 +++ net/mac80211/util.c | 116 +++++++++++++++++++++++++++++++++++++------ net/mac80211/work.c | 29 +----------- 3 files changed, 108 insertions(+), 45 deletions(-)
net/mac80211/ieee80211_i.h +8 -0
@@ -1333,6 +1333,12 @@ void ieee80211_recalc_smps(struct ieee80211_local *local);size_t ieee80211_ie_split (const u8 *ies,size_t ielen,const u8 *ids,int n_ids,size_t offset);size_t ieee80211_ie_split_vendor (const u8 *ies,size_t ielen,size_t offset); +u8 *ieee80211_ie_build_ht_cap (u8 *pos,struct ieee80211_supported_band *sband, +u16 cap); +u8 *ieee80211_ie_build_ht_info (u8 *pos, +struct ieee80211_sta_ht_cap *ht_cap, +struct ieee80211_channel *channel, +enum nl80211_channel_type channel_type);/* internal work items */ void ieee80211_work_init (struct ieee80211_local *local);
@@ -1361,6 +1367,8 @@ ieee80211_get_channel_mode(struct ieee80211_local *local,bool ieee80211_set_channel_type (struct ieee80211_local *local,struct ieee80211_sub_if_data *sdata,enum nl80211_channel_type chantype); +enum nl80211_channel_type +ieee80211_ht_info_to_channel_type (struct ieee80211_ht_info *ht_info);#ifdef CONFIG_MAC80211_NOINLINE #define debug_noinline noinline
net/mac80211/util.c +99 -17
128 lines not on this page · raw message
net/mac80211/work.c +1 -28
@@ -103,7 +103,6 @@ static void ieee80211_add_ht_ie(struct sk_buff *skb, const u8 *ht_info_ie,u8 *pos;u32 flags = channel->flags;u16 cap = sband->ht_cap.cap; -__le16 tmp;if (!sband->ht_cap.ht_supported)return ;
@@ -154,34 +153,8 @@ static void ieee80211_add_ht_ie(struct sk_buff *skb, const u8 *ht_info_ie, }/* reserve and fill IE */ - pos =skb_put (skb,sizeof (struct ieee80211_ht_cap ) +2 ); - *pos++ =WLAN_EID_HT_CAPABILITY ; - *pos++ =sizeof (struct ieee80211_ht_cap ); -memset (pos,0 ,sizeof (struct ieee80211_ht_cap )); - -/* capability flags */ - tmp =cpu_to_le16 (cap); -memcpy (pos, &tmp,sizeof (u16)); - pos +=sizeof (u16); - -/* AMPDU parameters */ - *pos++ = sband->ht_cap.ampdu_factor | - (sband->ht_cap.ampdu_density << -IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT ); - -/* MCS set */ -memcpy (pos, &sband->ht_cap.mcs,sizeof (sband->ht_cap.mcs)); - pos +=sizeof (sband->ht_cap.mcs); - -/* extended capabilities */ - pos +=sizeof (__le16); - -/* BF capabilities */ - pos +=sizeof (__le32); - -/* antenna selection */ - pos +=sizeof (u8); +ieee80211_ie_build_ht_cap (pos, sband, cap); } static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
Signature · 1 line
1.7.5.4
PATCH 3/5 mac80211: add HT IEs to mesh frames
In reply to Thomas Pedersen--- net/mac80211/mesh.c | 43 +++++++++++++++++++++++++++++++++++++++++++ net/mac80211/mesh.h | 4 ++++ net/mac80211/mesh_plink.c | 9 +++++++++ net/mac80211/tx.c | 4 ++++ 4 files changed, 60 insertions(+), 0 deletions(-)
net/mac80211/mesh.c +43 -0
@@ -341,6 +341,49 @@ int mesh_add_ds_params_ie(struct sk_buff *skb,return 0 ; } +int mesh_add_ht_cap_ie (struct sk_buff *skb, +struct ieee80211_sub_if_data *sdata) +{ +struct ieee80211_local *local = sdata->local; +struct ieee80211_supported_band *sband; +u8 *pos; + + sband = local->hw.wiphy->bands[local->oper_channel->band]; +if (!sband->ht_cap.ht_supported || + local->_oper_channel_type ==NL80211_CHAN_NO_HT ) +return 0 ; + +if (skb_tailroom (skb) <2 +sizeof (struct ieee80211_ht_cap )) +return -ENOMEM ; + + pos =skb_put (skb,2 +sizeof (struct ieee80211_ht_cap )); +ieee80211_ie_build_ht_cap (pos, sband, sband->ht_cap.cap); + +return 0 ; +} + +int mesh_add_ht_info_ie (struct sk_buff *skb, +struct ieee80211_sub_if_data *sdata) +{ +struct ieee80211_local *local = sdata->local; +struct ieee80211_channel *channel = local->oper_channel; +enum nl80211_channel_type channel_type = local->_oper_channel_type; +struct ieee80211_supported_band *sband = + local->hw.wiphy->bands[channel->band]; +struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; +u8 *pos; + +if (!ht_cap->ht_supported || channel_type ==NL80211_CHAN_NO_HT ) +return 0 ; + +if (skb_tailroom (skb) <2 +sizeof (struct ieee80211_ht_info )) +return -ENOMEM ; + + pos =skb_put (skb,2 +sizeof (struct ieee80211_ht_info )); +ieee80211_ie_build_ht_info (pos, ht_cap, channel, channel_type); + +return 0 ; +}static void ieee80211_mesh_path_timer (unsigned long data) { struct ieee80211_sub_if_data *sdata =
net/mac80211/mesh.h +4 -0
@@ -212,6 +212,10 @@ int mesh_add_vendor_ies(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata);int mesh_add_ds_params_ie (struct sk_buff *skb,struct ieee80211_sub_if_data *sdata); +int mesh_add_ht_cap_ie (struct sk_buff *skb, +struct ieee80211_sub_if_data *sdata); +int mesh_add_ht_info_ie (struct sk_buff *skb, +struct ieee80211_sub_if_data *sdata);void mesh_rmc_free (struct ieee80211_sub_if_data *sdata);int mesh_rmc_init (struct ieee80211_sub_if_data *sdata);void ieee80211s_init (void );
net/mac80211/mesh_plink.c +9 -0
@@ -169,6 +169,8 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata,2 + (IEEE80211_MAX_SUPP_RATES -8 ) +2 + sdata->u.mesh.mesh_id_len +2 +sizeof (struct ieee80211_meshconf_ie ) + +2 +sizeof (struct ieee80211_ht_cap ) + +2 +sizeof (struct ieee80211_ht_info ) +2 +8 +/* peering IE */ sdata->u.mesh.ie_len);if (!skb)
@@ -241,6 +243,13 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata,memcpy (pos, &reason,2 ); pos +=2 ; } + +if (action !=WLAN_SP_MESH_PEERING_CLOSE ) { +if (mesh_add_ht_cap_ie (skb, sdata) || +mesh_add_ht_info_ie (skb, sdata)) +return -1 ; + } +if (mesh_add_vendor_ies (skb, sdata))return -1 ;
net/mac80211/tx.c +4 -0
@@ -2292,6 +2292,8 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,2 +8 +/* supported rates */ 2 +3 +/* DS params */ 2 + (IEEE80211_MAX_SUPP_RATES -8 ) + +2 +sizeof (struct ieee80211_ht_cap ) + +2 +sizeof (struct ieee80211_ht_info ) +2 + sdata->u.mesh.mesh_id_len +2 +sizeof (struct ieee80211_meshconf_ie ) + sdata->u.mesh.ie_len);
@@ -2319,6 +2321,8 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,mesh_add_ds_params_ie (skb, sdata) ||ieee80211_add_ext_srates_ie (&sdata->vif, skb) ||mesh_add_rsn_ie (skb, sdata) || +mesh_add_ht_cap_ie (skb, sdata) || +mesh_add_ht_info_ie (skb, sdata) ||mesh_add_meshid_ie (skb, sdata) ||mesh_add_meshconf_ie (skb, sdata) || mesh_add_vendor_ies(skb, sdata)) {
Signature · 1 line
1.7.5.4
PATCH 4/5 mac80211: set HT capabilities for mesh peer
In reply to Thomas PedersenSet peer's HT capabilities, and disallow peering if we're on a different channel type.
--- net/mac80211/mesh.c | 25 +++++++++++++++++-------- net/mac80211/mesh_plink.c | 13 ++++++++++--- 2 files changed, 27 insertions(+), 11 deletions(-)
net/mac80211/mesh.c +18 -9
@@ -76,6 +76,7 @@ static void ieee80211_mesh_housekeeping_timer(unsigned long data)bool mesh_matches_local (struct ieee802_11_elems *ie,struct ieee80211_sub_if_data *sdata) {struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct ieee80211_local *local = sdata->local;/* * As support for each feature is added, check for matching
@@ -87,15 +88,23 @@ bool mesh_matches_local(struct ieee802_11_elems *ie, struct ieee80211_sub_if_dat* - MDA enabled * - Power management control on fc */ -if (ifmsh->mesh_id_len == ie->mesh_id_len && -memcmp (ifmsh->mesh_id, ie->mesh_id, ie->mesh_id_len) ==0 && - (ifmsh->mesh_pp_id == ie->mesh_config->meshconf_psel) && - (ifmsh->mesh_pm_id == ie->mesh_config->meshconf_pmetric) && - (ifmsh->mesh_cc_id == ie->mesh_config->meshconf_congest) && - (ifmsh->mesh_sp_id == ie->mesh_config->meshconf_synch) && - (ifmsh->mesh_auth_id == ie->mesh_config->meshconf_auth)) -return true; - +if (!(ifmsh->mesh_id_len == ie->mesh_id_len && +memcmp (ifmsh->mesh_id, ie->mesh_id, ie->mesh_id_len) ==0 && + (ifmsh->mesh_pp_id == ie->mesh_config->meshconf_psel) && + (ifmsh->mesh_pm_id == ie->mesh_config->meshconf_pmetric) && + (ifmsh->mesh_cc_id == ie->mesh_config->meshconf_congest) && + (ifmsh->mesh_sp_id == ie->mesh_config->meshconf_synch) && + (ifmsh->mesh_auth_id == ie->mesh_config->meshconf_auth))) + goto mismatch; + +/* disallow peering with mismatched channel types for now */ +if (ie->ht_info_elem && + (local->_oper_channel_type != +ieee80211_ht_info_to_channel_type (ie->ht_info_elem))) + goto mismatch; + +return true; +mismatch:return false; }
net/mac80211/mesh_plink.c +10 -3
@@ -80,11 +80,15 @@ static inline void mesh_plink_fsm_restart(struct sta_info *sta)* on it in the lifecycle management section! */ static struct sta_info *mesh_plink_alloc (struct ieee80211_sub_if_data *sdata, -u8 *hw_addr,u32 rates) +u8 *hw_addr,u32 rates, +struct ieee802_11_elems *elems) {struct ieee80211_local *local = sdata->local; +struct ieee80211_supported_band *sband;struct sta_info *sta; + sband = local->hw.wiphy->bands[local->oper_channel->band]; +if (local->num_sta >=MESH_MAX_PLINKS )return NULL ;
@@ -96,6 +100,9 @@ static struct sta_info *mesh_plink_alloc(struct ieee80211_sub_if_data *sdata,set_sta_flag (sta,WLAN_STA_AUTHORIZED );set_sta_flag (sta,WLAN_STA_WME ); sta->sta.supp_rates[local->hw.conf.channel->band] = rates; +if (elems->ht_cap_elem) +ieee80211_ht_cap_ie_to_sta_ht_cap (sband, elems->ht_cap_elem, + &sta->sta.ht_cap);rate_control_rate_init (sta);return sta;
@@ -276,7 +283,7 @@ void mesh_neighbour_update(u8 *hw_addr, u32 rates, elems->ie_start, elems->total_len, GFP_KERNEL); else - sta =mesh_plink_alloc (sdata, hw_addr, rates); + sta =mesh_plink_alloc (sdata, hw_addr, rates, elems);if (!sta)return ;if (sta_info_insert_rcu (sta)) {
@@ -567,7 +574,7 @@ void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata, struct ieee80211_m } rates =ieee80211_sta_get_rates (local, &elems, rx_status->band); - sta =mesh_plink_alloc (sdata, mgmt->sa, rates); + sta =mesh_plink_alloc (sdata, mgmt->sa, rates, &elems);if (!sta) {mpl_dbg ("Mesh plink error: plink table full\n" );return ;
Signature · 1 line
1.7.5.4
PATCH 5/5 mac80211: allow frame aggregation for mesh
In reply to Thomas Pedersenv2:
Remove outdated comments (Christian)
--- net/mac80211/agg-rx.c | 3 ++- net/mac80211/agg-tx.c | 10 +++------- net/mac80211/ht.c | 3 ++- net/mac80211/rx.c | 7 +------ 4 files changed, 8 insertions(+), 15 deletions(-)
net/mac80211/agg-rx.c +2 -1
@@ -176,7 +176,8 @@ static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *dmemcpy (mgmt->da, da,ETH_ALEN );memcpy (mgmt->sa, sdata->vif.addr,ETH_ALEN );if (sdata->vif.type ==NL80211_IFTYPE_AP || - sdata->vif.type ==NL80211_IFTYPE_AP_VLAN ) + sdata->vif.type ==NL80211_IFTYPE_AP_VLAN || + sdata->vif.type ==NL80211_IFTYPE_MESH_POINT )memcpy (mgmt->bssid, sdata->vif.addr,ETH_ALEN );else if (sdata->vif.type ==NL80211_IFTYPE_STATION )memcpy (mgmt->bssid, sdata->u.mgd.bssid,ETH_ALEN );
net/mac80211/agg-tx.c +3 -7
@@ -77,7 +77,8 @@ static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata,memcpy (mgmt->da, da,ETH_ALEN );memcpy (mgmt->sa, sdata->vif.addr,ETH_ALEN );if (sdata->vif.type ==NL80211_IFTYPE_AP || - sdata->vif.type ==NL80211_IFTYPE_AP_VLAN ) + sdata->vif.type ==NL80211_IFTYPE_AP_VLAN || + sdata->vif.type ==NL80211_IFTYPE_MESH_POINT )memcpy (mgmt->bssid, sdata->vif.addr,ETH_ALEN );else if (sdata->vif.type ==NL80211_IFTYPE_STATION )memcpy (mgmt->bssid, sdata->u.mgd.bssid,ETH_ALEN );
@@ -371,13 +372,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, pubsta->addr, tid);#endif /* CONFIG_MAC80211_HT_DEBUG */ -/* -* The aggregation code is not prepared to handle -* anything but STA/AP due to the BSSID handling. -* IBSS could work in the code but isn't supported -* by drivers or the standard. -*/ if (sdata->vif.type !=NL80211_IFTYPE_STATION && + sdata->vif.type !=NL80211_IFTYPE_MESH_POINT && sdata->vif.type !=NL80211_IFTYPE_AP_VLAN && sdata->vif.type !=NL80211_IFTYPE_AP )return -EINVAL ;
net/mac80211/ht.c +2 -1
@@ -195,7 +195,8 @@ void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata,memcpy (mgmt->da, da,ETH_ALEN );memcpy (mgmt->sa, sdata->vif.addr,ETH_ALEN );if (sdata->vif.type ==NL80211_IFTYPE_AP || - sdata->vif.type ==NL80211_IFTYPE_AP_VLAN ) + sdata->vif.type ==NL80211_IFTYPE_AP_VLAN || + sdata->vif.type ==NL80211_IFTYPE_MESH_POINT )memcpy (mgmt->bssid, sdata->vif.addr,ETH_ALEN );else if (sdata->vif.type ==NL80211_IFTYPE_STATION )memcpy (mgmt->bssid, sdata->u.mgd.bssid,ETH_ALEN );
net/mac80211/rx.c +1 -6
@@ -2203,13 +2203,8 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)switch (mgmt->u.action.category) {case WLAN_CATEGORY_BACK : -/* -* The aggregation code is not prepared to handle -* anything but STA/AP due to the BSSID handling; -* IBSS could work in the code but isn't supported -* by drivers or the standard. -*/ if (sdata->vif.type !=NL80211_IFTYPE_STATION && + sdata->vif.type !=NL80211_IFTYPE_MESH_POINT && sdata->vif.type !=NL80211_IFTYPE_AP_VLAN && sdata->vif.type !=NL80211_IFTYPE_AP )break ;
Signature · 1 line
1.7.5.4