Re: [PATCH 20/25] iwlwifi : Set monitor mode for 4965

Johannes Berg
2008-05-05T07:12:05Z

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

> - if (len > priv->hw_params.max_pkt_size || len < 16) {
> + /* In monitor mode allow 802.11 ACk frames (10 bytes) */
> + if (len > priv->hw_params.max_pkt_size ||
> + len < ((priv->iw_mode == IEEE80211_IF_TYPE_MNTR) ? 10 : 16)) {

> +
> + if (priv->iw_mode == IEEE80211_IF_TYPE_MNTR) {
> + iwl4965_handle_data_packet(priv, 1, include_phy,
> + rxb, &rx_status);
> + return;
> + }

Those conditions will never be true. In the case of the latter, that is
a good thing, in the case of the former that isn't.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]