提交 75706d0e 编写于 作者: F Felix Fietkau 提交者: John W. Linville

mac80211: remove a redundant check

ieee80211_is_nullfunc() implies ieee80211_is_data()
Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 af556884
......@@ -1067,8 +1067,7 @@ static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata)
void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata,
struct ieee80211_hdr *hdr)
{
if (!ieee80211_is_data(hdr->frame_control) &&
!ieee80211_is_nullfunc(hdr->frame_control))
if (!ieee80211_is_data(hdr->frame_control))
return;
ieee80211_sta_reset_conn_monitor(sdata);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册