aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/hostcmd.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2008-08-21 21:46:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-29 16:24:07 -0400
commitf5fe1fdaae86a74d6977fafd8fdd8697e398dafd (patch)
treea341d45ea902bb9b8ed1ca07934f62d43951d741 /drivers/net/wireless/libertas/hostcmd.h
parentd5db2dfa660de13c3643149b89c7602dd49aa168 (diff)
libertas: convert adhoc operations to direct commands
with fixes for v9 and later firmware too. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/hostcmd.h')
-rw-r--r--drivers/net/wireless/libertas/hostcmd.h32
1 files changed, 19 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/hostcmd.h b/drivers/net/wireless/libertas/hostcmd.h
index 342c2e3af34c..d27c276b2191 100644
--- a/drivers/net/wireless/libertas/hostcmd.h
+++ b/drivers/net/wireless/libertas/hostcmd.h
@@ -257,11 +257,6 @@ struct cmd_ds_802_11_associate_rsp {
257 struct ieeetypes_assocrsp assocRsp; 257 struct ieeetypes_assocrsp assocRsp;
258}; 258};
259 259
260struct cmd_ds_802_11_ad_hoc_result {
261 u8 pad[3];
262 u8 bssid[ETH_ALEN];
263};
264
265struct cmd_ds_802_11_set_wep { 260struct cmd_ds_802_11_set_wep {
266 struct cmd_header hdr; 261 struct cmd_header hdr;
267 262
@@ -508,10 +503,12 @@ struct cmd_ds_802_11_rate_adapt_rateset {
508}; 503};
509 504
510struct cmd_ds_802_11_ad_hoc_start { 505struct cmd_ds_802_11_ad_hoc_start {
506 struct cmd_header hdr;
507
511 u8 ssid[IW_ESSID_MAX_SIZE]; 508 u8 ssid[IW_ESSID_MAX_SIZE];
512 u8 bsstype; 509 u8 bsstype;
513 __le16 beaconperiod; 510 __le16 beaconperiod;
514 u8 dtimperiod; 511 u8 dtimperiod; /* Reserved on v9 and later */
515 union IEEEtypes_ssparamset ssparamset; 512 union IEEEtypes_ssparamset ssparamset;
516 union ieeetypes_phyparamset phyparamset; 513 union ieeetypes_phyparamset phyparamset;
517 __le16 probedelay; 514 __le16 probedelay;
@@ -520,9 +517,16 @@ struct cmd_ds_802_11_ad_hoc_start {
520 u8 tlv_memory_size_pad[100]; 517 u8 tlv_memory_size_pad[100];
521} __attribute__ ((packed)); 518} __attribute__ ((packed));
522 519
520struct cmd_ds_802_11_ad_hoc_result {
521 struct cmd_header hdr;
522
523 u8 pad[3];
524 u8 bssid[ETH_ALEN];
525};
526
523struct adhoc_bssdesc { 527struct adhoc_bssdesc {
524 u8 bssid[6]; 528 u8 bssid[ETH_ALEN];
525 u8 ssid[32]; 529 u8 ssid[IW_ESSID_MAX_SIZE];
526 u8 type; 530 u8 type;
527 __le16 beaconperiod; 531 __le16 beaconperiod;
528 u8 dtimperiod; 532 u8 dtimperiod;
@@ -540,10 +544,15 @@ struct adhoc_bssdesc {
540} __attribute__ ((packed)); 544} __attribute__ ((packed));
541 545
542struct cmd_ds_802_11_ad_hoc_join { 546struct cmd_ds_802_11_ad_hoc_join {
547 struct cmd_header hdr;
548
543 struct adhoc_bssdesc bss; 549 struct adhoc_bssdesc bss;
544 __le16 failtimeout; 550 __le16 failtimeout; /* Reserved on v9 and later */
545 __le16 probedelay; 551 __le16 probedelay; /* Reserved on v9 and later */
552} __attribute__ ((packed));
546 553
554struct cmd_ds_802_11_ad_hoc_stop {
555 struct cmd_header hdr;
547} __attribute__ ((packed)); 556} __attribute__ ((packed));
548 557
549struct cmd_ds_802_11_enable_rsn { 558struct cmd_ds_802_11_enable_rsn {
@@ -694,16 +703,13 @@ struct cmd_ds_command {
694 union { 703 union {
695 struct cmd_ds_802_11_ps_mode psmode; 704 struct cmd_ds_802_11_ps_mode psmode;
696 struct cmd_ds_802_11_associate associate; 705 struct cmd_ds_802_11_associate associate;
697 struct cmd_ds_802_11_ad_hoc_start ads;
698 struct cmd_ds_802_11_reset reset; 706 struct cmd_ds_802_11_reset reset;
699 struct cmd_ds_802_11_ad_hoc_result result;
700 struct cmd_ds_802_11_authenticate auth; 707 struct cmd_ds_802_11_authenticate auth;
701 struct cmd_ds_802_11_get_stat gstat; 708 struct cmd_ds_802_11_get_stat gstat;
702 struct cmd_ds_802_3_get_stat gstat_8023; 709 struct cmd_ds_802_3_get_stat gstat_8023;
703 struct cmd_ds_802_11_snmp_mib smib; 710 struct cmd_ds_802_11_snmp_mib smib;
704 struct cmd_ds_802_11_rf_antenna rant; 711 struct cmd_ds_802_11_rf_antenna rant;
705 struct cmd_ds_802_11_monitor_mode monitor; 712 struct cmd_ds_802_11_monitor_mode monitor;
706 struct cmd_ds_802_11_ad_hoc_join adj;
707 struct cmd_ds_802_11_rssi rssi; 713 struct cmd_ds_802_11_rssi rssi;
708 struct cmd_ds_802_11_rssi_rsp rssirsp; 714 struct cmd_ds_802_11_rssi_rsp rssirsp;
709 struct cmd_ds_mac_reg_access macreg; 715 struct cmd_ds_mac_reg_access macreg;