aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/join.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/join.c')
-rw-r--r--drivers/net/wireless/libertas/join.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c
index 3854d91c90e2..ca67524ee8dd 100644
--- a/drivers/net/wireless/libertas/join.c
+++ b/drivers/net/wireless/libertas/join.c
@@ -510,7 +510,9 @@ int lbs_cmd_80211_ad_hoc_start(lbs_private *priv,
510 /* set the BSS type */ 510 /* set the BSS type */
511 adhs->bsstype = CMD_BSS_TYPE_IBSS; 511 adhs->bsstype = CMD_BSS_TYPE_IBSS;
512 adapter->mode = IW_MODE_ADHOC; 512 adapter->mode = IW_MODE_ADHOC;
513 adhs->beaconperiod = cpu_to_le16(MRVDRV_BEACON_INTERVAL); 513 if (adapter->beacon_period == 0)
514 adapter->beacon_period = MRVDRV_BEACON_INTERVAL;
515 adhs->beaconperiod = cpu_to_le16(adapter->beacon_period);
514 516
515 /* set Physical param set */ 517 /* set Physical param set */
516#define DS_PARA_IE_ID 3 518#define DS_PARA_IE_ID 3