o wl3501: introduce iw_mgmt_ibss_pset

parent 1f1892c6
......@@ -234,6 +234,11 @@ struct iw_mgmt_ds_pset {
u8 chan;
} __attribute__ ((packed));
struct iw_mgmt_ibss_pset {
struct iw_mgmt_info_element el;
u16 atim_window;
} __attribute__ ((packed));
struct wl3501_tx_hdr {
u16 tx_cnt;
u8 sync[16];
......@@ -285,7 +290,7 @@ struct wl3501_start_req {
u8 operational_rate_set[10];
u8 cf_pset[8];
struct iw_mgmt_ds_pset ds_pset;
u8 ibss_pset[4];
struct iw_mgmt_ibss_pset ibss_pset;
};
struct wl3501_assoc_req {
......@@ -363,7 +368,7 @@ struct wl3501_join_req {
struct iw_mgmt_essid_pset ssid;
struct iw_mgmt_ds_pset ds_pset;
u8 cf_pset[8];
u8 ibss_pset[4];
struct iw_mgmt_ibss_pset ibss_pset;
u8 bss_basic_rate_set[10];
};
......@@ -417,7 +422,7 @@ struct wl3501_scan_confirm {
struct iw_mgmt_essid_pset ssid;
struct iw_mgmt_ds_pset ds_pset;
u8 cf_pset[8];
u8 ibss_pset[4];
struct iw_mgmt_ibss_pset ibss_pset;
u8 bss_basic_rate_set[10];
u8 rssi;
};
......
......@@ -639,11 +639,9 @@ static int wl3501_mgmt_join(struct wl3501_card *this, u16 stas)
.sig_id = WL3501_SIG_JOIN_REQ,
.timeout = 10,
.ds_pset = {
.el = {
.id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
.len = 1,
},
.chan = this->chan,
.el.id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
.el.len = 1,
.chan = this->chan,
},
};
......@@ -658,11 +656,9 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
.beacon_period = 400,
.dtim_period = 1,
.ds_pset = {
.el = {
.id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
.len = 1,
},
.chan = this->chan,
.el.id = IW_MGMT_INFO_ELEMENT_DS_PARAMETER_SET,
.el.len = 1,
.chan = this->chan,
},
.bss_basic_rate_set = {
[0] = 0x01, [1] = 0x02, [2] = 0x82, [3] = 0x84,
......@@ -671,7 +667,9 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
[0] = 0x01, [1] = 0x02, [2] = 0x82, [3] = 0x84,
},
.ibss_pset = {
[0] = 6, [1] = 2, [2] = 10,
.el.id = IW_MGMT_INFO_ELEMENT_IBSS_PARAMETER_SET,
.el.len = 2,
.atim_window = 10,
},
.bss_type = wl3501_fw_bss_type(this),
.cap_info = wl3501_fw_cap_info(this),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment