Changeset 1362
- Timestamp:
- 12/19/05 09:58:47 (3 years ago)
- Files:
-
- trunk/ath/if_ath.c (modified) (4 diffs)
- trunk/ath/if_athvar.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ath/if_ath.c
r1355 r1362 258 258 static int ath_xchanmode = AH_TRUE; /* enable extended channels */ 259 259 260 static int rfkill = -1; 260 261 static int countrycode = -1; 261 262 static int outdoor = -1; … … 285 286 MODULE_PARM(outdoor, "i"); 286 287 MODULE_PARM(xchanmode, "i"); 288 MODULE_PARM(rfkill, "i"); 287 289 #else 288 290 #include <linux/moduleparam.h> … … 290 292 module_param(outdoor, int, 0); 291 293 module_param(xchanmode, int, 0); 294 module_param(rfkill, int, 0); 292 295 #endif 293 296 MODULE_PARM_DESC(countrycode, "Override default country code"); 294 297 MODULE_PARM_DESC(outdoor, "Enable/disable outdoor use"); 295 298 MODULE_PARM_DESC(xchanmode, "Enable/disable extended channel mode"); 299 MODULE_PARM_DESC(rfkill, "Enable/disable RFKILL capability"); 296 300 297 301 #ifdef AR_DEBUG … … 498 502 ic->ic_country_code = ath_countrycode; 499 503 ic->ic_country_outdoor = ath_outdoor; 504 505 if(rfkill != -1) { 506 printk(KERN_INFO "ath_pci: switching rfkill capability %s\n", rfkill ? "on" : "off"); 507 ath_hal_setrfsilent(ah, rfkill); 508 } 500 509 501 510 /* trunk/ath/if_athvar.h
r1299 r1362 879 879 #define ath_hal_settsfadjust(_ah, _v) \ 880 880 ath_hal_setcapability(_ah, HAL_CAP_TSF_ADJUST, 1, _v, NULL) 881 #define ath_hal_setrfsilent(_ah, _v) \ 882 ath_hal_setcapability(_ah, HAL_CAP_RFSILENT, 1, _v, NULL) 883 #define ath_hal_hasrfsilent(_ah) \ 884 (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 0, NULL) == HAL_OK) 881 885 882 886 #define ath_hal_setuprxdesc(_ah, _ds, _size, _intreq) \
