Thread: [Madwifi-cvs] madwifi/ath if_ath.c,1.39,1.40
Status: Beta
Brought to you by:
otaku
From: Sebastian W. <to...@us...> - 2005-06-24 10:41:38
|
Update of /cvsroot/madwifi/madwifi/ath In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10274 Modified Files: if_ath.c Log Message: - changed order in reset, first reset hal, then set max txpower - prevents segfault when changing mac address of the card Index: if_ath.c =================================================================== RCS file: /cvsroot/madwifi/madwifi/ath/if_ath.c,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** if_ath.c 2 Jun 2005 20:07:09 -0000 1.39 --- if_ath.c 24 Jun 2005 10:41:22 -0000 1.40 *************** *** 1037,1042 **** ath_draintxq(sc); /* stop xmit side */ ath_stoprecv(sc); /* stop recv side */ - /* Setup max txpower */ - ath_hal_settxpower(ah, ic->ic_bss->ni_txpower); /* NB: indicate channel change so we do a full reset */ --- 1037,1040 ---- *************** *** 1044,1047 **** --- 1042,1048 ---- printk("%s: %s: unable to reset hardware: '%s' (HAL status %u)\n", dev->name, __func__, hal_status_desc[status], status); + /* Setup max txpower */ + ath_hal_settxpower(ah, ic->ic_bss->ni_txpower); + if (ath_startrecv(sc) != 0) /* restart recv */ printk("%s: %s: unable to start recv logic\n", |