/* Enables decryption for Wireshark if on_off is TRUE, disables it otherwise.  */
void set_wireshark_decryption(gboolean on_off)
/* Enables decryption for Wireshark if on_off is TRUE, disables it otherwise.  */
void set_wireshark_decryption(gboolean on_off)
{
    gboolean is_on;
    is_on = on_off;
    wlan_prefs = prefs_find_module("wlan");
    prefs_pref_foreach(wlan_prefs, set_on_off, (gpointer)&is_on);
    wlan_prefs->prefs_changed = TRUE;
    prefs_apply(wlan_prefs);
}