aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-01-29 16:26:44 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-09 15:03:43 -0500
commitc1b4aa3fb619782213af2af6652663c8f9cef373 (patch)
treea5c37c26ebf311dbf9428167efdb24915c1b824c /net/mac80211
parente5d24efe529b26d782b41a61a5e958c72f36f295 (diff)
wireless: replace uses of __constant_{endian}
The base versions handle constant folding now. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/rx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 19ffc8ef1d1d..1a59382976e6 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1225,12 +1225,12 @@ ieee80211_data_to_8023(struct ieee80211_rx_data *rx)
1225 1225
1226 switch (hdr->frame_control & 1226 switch (hdr->frame_control &
1227 cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) { 1227 cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) {
1228 case __constant_cpu_to_le16(IEEE80211_FCTL_TODS): 1228 case cpu_to_le16(IEEE80211_FCTL_TODS):
1229 if (unlikely(sdata->vif.type != NL80211_IFTYPE_AP && 1229 if (unlikely(sdata->vif.type != NL80211_IFTYPE_AP &&
1230 sdata->vif.type != NL80211_IFTYPE_AP_VLAN)) 1230 sdata->vif.type != NL80211_IFTYPE_AP_VLAN))
1231 return -1; 1231 return -1;
1232 break; 1232 break;
1233 case __constant_cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS): 1233 case cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS):
1234 if (unlikely(sdata->vif.type != NL80211_IFTYPE_WDS && 1234 if (unlikely(sdata->vif.type != NL80211_IFTYPE_WDS &&
1235 sdata->vif.type != NL80211_IFTYPE_MESH_POINT)) 1235 sdata->vif.type != NL80211_IFTYPE_MESH_POINT))
1236 return -1; 1236 return -1;
@@ -1244,13 +1244,13 @@ ieee80211_data_to_8023(struct ieee80211_rx_data *rx)
1244 } 1244 }
1245 } 1245 }
1246 break; 1246 break;
1247 case __constant_cpu_to_le16(IEEE80211_FCTL_FROMDS): 1247 case cpu_to_le16(IEEE80211_FCTL_FROMDS):
1248 if (sdata->vif.type != NL80211_IFTYPE_STATION || 1248 if (sdata->vif.type != NL80211_IFTYPE_STATION ||
1249 (is_multicast_ether_addr(dst) && 1249 (is_multicast_ether_addr(dst) &&
1250 !compare_ether_addr(src, dev->dev_addr))) 1250 !compare_ether_addr(src, dev->dev_addr)))
1251 return -1; 1251 return -1;
1252 break; 1252 break;
1253 case __constant_cpu_to_le16(0): 1253 case cpu_to_le16(0):
1254 if (sdata->vif.type != NL80211_IFTYPE_ADHOC) 1254 if (sdata->vif.type != NL80211_IFTYPE_ADHOC)
1255 return -1; 1255 return -1;
1256 break; 1256 break;