Try to read the station address twice during the probe. I've seen
a LinkSys card here in the office where reading the station address fails the first time, but works find afterwards. Without this, the probe fails. I don't think this will negatively impact any existing cards, but I want to confirm this before MFC'ing.
This commit is contained in:
parent
dcd8123edb
commit
bb5973c512
@ -426,9 +426,15 @@ wi_generic_attach(device_t dev)
|
||||
/* Reset the NIC. */
|
||||
wi_reset(sc);
|
||||
|
||||
/* Read the station address. */
|
||||
/*
|
||||
* Read the station address.
|
||||
* And do it twice. I've seen PRISM-based cards that return
|
||||
* an error when trying to read it the first time, which causes
|
||||
* the probe to fail.
|
||||
*/
|
||||
mac.wi_type = WI_RID_MAC_NODE;
|
||||
mac.wi_len = 4;
|
||||
wi_read_record(sc, (struct wi_ltv_gen *)&mac));
|
||||
if ((error = wi_read_record(sc, (struct wi_ltv_gen *)&mac)) != 0) {
|
||||
device_printf(dev, "mac read failed %d\n", error);
|
||||
wi_free(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user