Skip to content

Commit

Permalink
orinoco: Use extended Agere scans available on 9.x series firmwares
Browse files Browse the repository at this point in the history
This provides more information than the standard Agere scan, including
the WPA IE.

Signed-off-by: David Kilroy <kilroyd@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
David Kilroy authored and John W. Linville committed Aug 22, 2008
1 parent 3056c40 commit 01632fa
Show file tree
Hide file tree
Showing 4 changed files with 448 additions and 44 deletions.
34 changes: 34 additions & 0 deletions drivers/net/wireless/hermes.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,40 @@ union hermes_scan_info {
struct symbol_scan_apinfo s;
};

/* Extended scan struct for HERMES_INQ_CHANNELINFO.
* wl_lkm calls this an ACS scan (Automatic Channel Select).
* Keep out of union hermes_scan_info because it is much bigger than
* the older scan structures. */
struct agere_ext_scan_info {
__le16 reserved0;

u8 noise;
u8 level;
u8 rx_flow;
u8 rate;
__le16 reserved1[2];

__le16 frame_control;
__le16 dur_id;
u8 addr1[ETH_ALEN];
u8 addr2[ETH_ALEN];
u8 bssid[ETH_ALEN];
__le16 sequence;
u8 addr4[ETH_ALEN];

__le16 data_length;

/* Next 3 fields do not get filled in. */
u8 daddr[ETH_ALEN];
u8 saddr[ETH_ALEN];
__le16 len_type;

__le64 timestamp;
__le16 beacon_interval;
__le16 capabilities;
u8 data[316];
} __attribute__ ((packed));

#define HERMES_LINKSTATUS_NOT_CONNECTED (0x0000)
#define HERMES_LINKSTATUS_CONNECTED (0x0001)
#define HERMES_LINKSTATUS_DISCONNECTED (0x0002)
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/hermes_rid.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
#define HERMES_RID_CNFSCANSSID_AGERE 0xFCB2
#define HERMES_RID_CNFBASICRATES 0xFCB3
#define HERMES_RID_CNFSUPPORTEDRATES 0xFCB4
#define HERMES_RID_CNFSCANCHANNELS2GHZ 0xFCC2
#define HERMES_RID_CNFTICKTIME 0xFCE0
#define HERMES_RID_CNFSCANREQUEST 0xFCE1
#define HERMES_RID_CNFJOINREQUEST 0xFCE2
Expand Down
Loading

0 comments on commit 01632fa

Please sign in to comment.