提交 3bc7945e 编写于 作者: J Joe Perches 提交者: David S. Miller

mac80211: Convert compare_ether_addr to ether_addr_equal by hand

spatch/coccinelle isn't perfect.  It doesn't understand
__aligned(x) and doesn't convert functions it can't parse.

Convert the remaining compare_ether_addr uses.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b203ca39
...@@ -1714,8 +1714,8 @@ static bool ieee80211_frame_allowed(struct ieee80211_rx_data *rx, __le16 fc) ...@@ -1714,8 +1714,8 @@ static bool ieee80211_frame_allowed(struct ieee80211_rx_data *rx, __le16 fc)
* of whether the frame was encrypted or not. * of whether the frame was encrypted or not.
*/ */
if (ehdr->h_proto == rx->sdata->control_port_protocol && if (ehdr->h_proto == rx->sdata->control_port_protocol &&
(compare_ether_addr(ehdr->h_dest, rx->sdata->vif.addr) == 0 || (ether_addr_equal(ehdr->h_dest, rx->sdata->vif.addr) ||
compare_ether_addr(ehdr->h_dest, pae_group_addr) == 0)) ether_addr_equal(ehdr->h_dest, pae_group_addr)))
return true; return true;
if (ieee80211_802_1x_port_control(rx) || if (ieee80211_802_1x_port_control(rx) ||
......
...@@ -501,7 +501,7 @@ void for_each_sta_info_type_check(struct ieee80211_local *local, ...@@ -501,7 +501,7 @@ void for_each_sta_info_type_check(struct ieee80211_local *local,
nxt = _sta ? rcu_dereference(_sta->hnext) : NULL \ nxt = _sta ? rcu_dereference(_sta->hnext) : NULL \
) \ ) \
/* compare address and run code only if it matches */ \ /* compare address and run code only if it matches */ \
if (compare_ether_addr(_sta->sta.addr, (_addr)) == 0) if (ether_addr_equal(_sta->sta.addr, (_addr)))
/* /*
* Get STA info by index, BROKEN! * Get STA info by index, BROKEN!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册