Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247644
b: refs/heads/master
c: 3a9d60e
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho committed May 12, 2011
1 parent 6d49af2 commit 49a564b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcd23b6305e98f5ad3ddd7ff3f5081c75fcd4367
refs/heads/master: 3a9d60e5bd72f9533b05d39278fec50b181dbdd2
21 changes: 21 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,26 @@ struct conf_scan_settings {

};

struct conf_sched_scan_settings {
/* minimum time to wait on the channel for active scans (in TUs) */
u16 min_dwell_time_active;

/* maximum time to wait on the channel for active scans (in TUs) */
u16 max_dwell_time_active;

/* time to wait on the channel for passive scans (in TUs) */
u32 dwell_time_passive;

/* number of probe requests to send on each channel in active scans */
u8 num_probe_reqs;

/* RSSI threshold to be used for filtering */
s8 rssi_threshold;

/* SNR threshold to be used for filtering */
s8 snr_threshold;
};

/* these are number of channels on the band divided by two, rounded up */
#define CONF_TX_PWR_COMPENSATION_LEN_2 7
#define CONF_TX_PWR_COMPENSATION_LEN_5 18
Expand Down Expand Up @@ -1234,6 +1254,7 @@ struct conf_drv_settings {
struct conf_pm_config_settings pm_config;
struct conf_roam_trigger_settings roam_trigger;
struct conf_scan_settings scan;
struct conf_sched_scan_settings sched_scan;
struct conf_rf_settings rf;
struct conf_ht_setting ht;
struct conf_memory_settings mem_wl127x;
Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,15 @@ static struct conf_drv_settings default_conf = {
.max_dwell_time_passive = 100000,
.num_probe_reqs = 2,
},
.sched_scan = {
/* sched_scan requires dwell times in TU instead of TU/1000 */
.min_dwell_time_active = 8,
.max_dwell_time_active = 30,
.dwell_time_passive = 100,
.num_probe_reqs = 2,
.rssi_threshold = -90,
.snr_threshold = 0,
},
.rf = {
.tx_per_channel_power_compensation_2 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Expand Down

0 comments on commit 49a564b

Please sign in to comment.