From: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> For debugging it seems useful to be able to turn off hardware encryption. With the changes I made to mac80211 that is now simple. Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> Signed-off-by: Michael Buesch <mb@xxxxxxxxx> Index: wireless-dev-new/drivers/net/wireless/b43/main.c =================================================================== --- wireless-dev-new.orig/drivers/net/wireless/b43/main.c 2007-08-23 23:32:08.000000000 +0200 +++ wireless-dev-new/drivers/net/wireless/b43/main.c 2007-08-23 23:36:22.000000000 +0200 @@ -104,6 +104,10 @@ static int modparam_hwpctl; module_param_named(hwpctl, modparam_hwpctl, int, 0444); MODULE_PARM_DESC(hwpctl, "Enable hardware-side power control (default off)"); +static int modparam_nohwcrypt; +module_param_named(nohwcrypt, modparam_nohwcrypt, int, 0444); +MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption."); + static const struct ssb_device_id b43_ssb_tbl[] = { SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 5), SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 6), @@ -2872,6 +2876,9 @@ static int b43_dev_set_key(struct ieee80 u8 index; int err = -EINVAL; + if (modparam_nohwcrypt) + return -ENOSPC; /* User disabled HW-crypto */ + if (!dev) return -ENODEV; switch (key->alg) { -- - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html