Commit 6df2eeec authored by Javier Achirica's avatar Javier Achirica Committed by Jeff Garzik

airo wireless: more verbose MAC-enable errors

parent c9907289
...@@ -2166,7 +2166,10 @@ static u16 setup_card(struct airo_info *ai, u8 *mac) ...@@ -2166,7 +2166,10 @@ static u16 setup_card(struct airo_info *ai, u8 *mac)
if ( status != SUCCESS ) return ERROR; if ( status != SUCCESS ) return ERROR;
status = enable_MAC(ai, &rsp); status = enable_MAC(ai, &rsp);
if ( status != SUCCESS ) return ERROR; if ( status != SUCCESS || (rsp.status & 0xFF00) != 0) {
printk( KERN_ERR "airo: Bad MAC enable reason = %x, rid = %x, offset = %d\n", rsp.rsp0, rsp.rsp1, rsp.rsp2 );
return ERROR;
}
/* Grab the initial wep key, we gotta save it for auto_wep */ /* Grab the initial wep key, we gotta save it for auto_wep */
rc = readWepKeyRid(ai, &wkr, 1); rc = readWepKeyRid(ai, &wkr, 1);
......
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