提交 a0f2e0fc 编写于 作者: L Luis R. Rodriguez 提交者: John W. Linville

cfg80211: Ingore country IEs with a zero set of number of channels

Previous to this and the last patch, titled,

"cfg80211: Fix 2 GHz subband calculation for country IEs"

we would end up treating these IEs as single channel units. These are in
fact just bogus IE triplets so ignore the entire IE if these are found.
Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 c99445b1
......@@ -585,6 +585,9 @@ static int max_subband_chan(int orig_cur_chan,
break;
}
if (triplet->chans.num_channels == 0)
return 0;
/* Monitonically increasing channel order */
if (triplet->chans.first_channel <= end_subband_chan)
return 0;
......@@ -737,6 +740,9 @@ static struct ieee80211_regdomain *country_ie_2_rd(
break;
}
if (triplet->chans.num_channels == 0)
return NULL;
/* 2 GHz */
if (triplet->chans.first_channel <= 14)
end_channel = triplet->chans.first_channel +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册