mac80211: remove IEEE80211_FC helper
PATCH 1/3 mac80211: remove IEEE80211_FC helper
Signed-off-by Harvey Harrison <[email protected]>
--- net/mac80211/ieee80211_i.h | 2 - net/mac80211/mesh_hwmp.c | 8 +++--- net/mac80211/mesh_plink.c | 4 +- net/mac80211/mlme.c | 51 +++++++++++++++++++++---------------------- 4 files changed, 31 insertions(+), 34 deletions(-)
net/mac80211/ieee80211_i.h +0 -2
@@ -37,8 +37,6 @@#define WLAN_FC_DATA_PRESENT (fc) (((fc) & 0x4c) == 0x08) -#define IEEE80211_FC (type, subtype) cpu_to_le16(type | subtype) -struct ieee80211_local ;/* Maximum number of broadcast/multicast frames to buffer when some of the
net/mac80211/mesh_hwmp.c +4 -4
@@ -99,8 +99,8 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, 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->frame_control =IEEE80211_FC (IEEE80211_FTYPE_MGMT , -IEEE80211_STYPE_ACTION ); + mgmt->frame_control =cpu_to_le16 (IEEE80211_FTYPE_MGMT | +IEEE80211_STYPE_ACTION );memcpy (mgmt->da, da,ETH_ALEN );memcpy (mgmt->sa, dev->dev_addr,ETH_ALEN );
@@ -178,8 +178,8 @@ int mesh_path_error_tx(u8 *dst, __le32 dst_dsn, u8 *ra, 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->frame_control =IEEE80211_FC (IEEE80211_FTYPE_MGMT , -IEEE80211_STYPE_ACTION ); + mgmt->frame_control =cpu_to_le16 (IEEE80211_FTYPE_MGMT | +IEEE80211_STYPE_ACTION );memcpy (mgmt->da, ra,ETH_ALEN );memcpy (mgmt->sa, dev->dev_addr,ETH_ALEN );
net/mac80211/mesh_plink.c +2 -2
@@ -163,8 +163,8 @@ static int mesh_plink_frame_tx(struct net_device *dev, mgmt = (struct ieee80211_mgmt *)skb_put (skb,25 +sizeof (mgmt->u.action.u.plink_action));memset (mgmt,0 ,25 +sizeof (mgmt->u.action.u.plink_action)); - mgmt->frame_control =IEEE80211_FC (IEEE80211_FTYPE_MGMT , -IEEE80211_STYPE_ACTION ); + mgmt->frame_control =cpu_to_le16 (IEEE80211_FTYPE_MGMT | +IEEE80211_STYPE_ACTION );memcpy (mgmt->da, da,ETH_ALEN );memcpy (mgmt->sa, dev->dev_addr,ETH_ALEN );/* BSSID is left zeroed, wildcard value */
net/mac80211/mlme.c +25 -26
129 lines not on this page · raw message
Signature · 1 line
1.5.6.1.322.ge904b