Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Similar question: Display decrypted WLAN traffic that has the Protected bit set

Screenshot of preference in the Wireshark gui: Wi-Fi (WLAN, IEEE 802.11)

Setting an option on the command line with tshark:

-o <preference>:<value>
Set a preference value, overriding the default value and any value read from a preference file. The argument to the option is a string of the form prefname:value, where prefname is the name of the preference (which is the same name that would appear in the preference file), and value is the value to which it should be set.

The preference is wlan.ignore_wep defined in dissectors/packet-ieee80211.c:

  prefs_register_enum_preference(wlan_module, "ignore_wep",
    "Ignore the Protection bit",
    "Some 802.11 cards leave the Protection bit set even though the packet is decrypted, "
    "and some also leave the IV (initialization vector).",
    &wlan_ignore_prot, wlan_ignore_prot_options, TRUE);

The valid values are defined here:

static const enum_val_t wlan_ignore_prot_options[] = {
  { "no",         "No",               WLAN_IGNORE_PROT_NO    },
  { "without_iv", "Yes - without IV", WLAN_IGNORE_PROT_WO_IV },
  { "with_iv",    "Yes - with IV",    WLAN_IGNORE_PROT_W_IV  },
  { NULL,         NULL,               0                     }

Tested with Wireshark to see the setting in preferences gui:

C:\>wireshark -o wlan.ignore_wep:without_iv

C:\>wireshark -o wlan.ignore_wep:with_iv

C:\>wireshark -o wlan.ignore_wep:no