Ticket #1284: madwifi-0.9.3-add-tpc-support.diff
| File madwifi-0.9.3-add-tpc-support.diff, 2.2 kB (added by mike.taylor@apprion.com, 5 years ago) |
|---|
-
svn.madwifi.org-trunk-2250/ath/if_ath.c
old new 259 259 static char *autocreate = NULL; 260 260 static char *ratectl = DEF_RATE_CTL; 261 261 static int rfkill = -1; 262 #ifdef ATH_CAP_TPC 263 static int tpc = -1; 264 #endif 262 265 static int countrycode = -1; 263 266 static int outdoor = -1; 264 267 static int xchanmode = -1; … … 291 294 MODULE_PARM(outdoor, "i"); 292 295 MODULE_PARM(xchanmode, "i"); 293 296 MODULE_PARM(rfkill, "i"); 297 #ifdef ATH_CAP_TPC 298 MODULE_PARM(tpc, "i"); 299 #endif 294 300 MODULE_PARM(autocreate, "s"); 295 301 MODULE_PARM(ratectl, "s"); 296 302 #else … … 299 305 module_param(outdoor, int, 0600); 300 306 module_param(xchanmode, int, 0600); 301 307 module_param(rfkill, int, 0600); 308 #ifdef ATH_CAP_TPC 309 module_param(tpc, int, 0600); 310 #endif 302 311 module_param(autocreate, charp, 0600); 303 312 module_param(ratectl, charp, 0600); 304 313 #endif … … 306 315 MODULE_PARM_DESC(outdoor, "Enable/disable outdoor use"); 307 316 MODULE_PARM_DESC(xchanmode, "Enable/disable extended channel mode"); 308 317 MODULE_PARM_DESC(rfkill, "Enable/disable RFKILL capability"); 318 #ifdef ATH_CAP_TPC 319 MODULE_PARM_DESC(tpc, "Enable/disable per-packet transmit power control (TPC) capability"); 320 #endif 309 321 MODULE_PARM_DESC(autocreate, "Create ath device in [sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use 'none' to disable"); 310 322 MODULE_PARM_DESC(ratectl, "Rate control algorithm [amrr|minstrel|onoe|sample], defaults to '" DEF_RATE_CTL "'"); 311 323 … … 509 521 ath_hal_setrfsilent(ah, rfkill); 510 522 } 511 523 524 #ifdef ATH_CAP_TPC 525 if (tpc != -1) { 526 printk(KERN_INFO "ath_pci: ath_pci: switching per-packet transmit power control %s\n", 527 tpc ? "on" : "off"); 528 ath_hal_settpc(ah, tpc); 529 } 530 #endif 531 512 532 /* 513 533 * Setup rate tables for all potential media types. 514 534 */
