Changeset 47911


Ignore:
Timestamp:
2015-12-17T10:27:31+01:00 (2 years ago)
Author:
blogic
Message:

lantiq: Allow configuration of ath9k disabled bands and LED polarity from the device tree.

Signed-off-by: Vittorio Gambaletta <openwrt@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/patches-4.1/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch

    r47129 r47911  
    5252--- /dev/null 
    5353+++ b/arch/mips/lantiq/xway/ath_eep.c 
    54 @@ -0,0 +1,282 @@ 
     54@@ -0,0 +1,298 @@ 
    5555+/* 
    5656+ *  Copyright (C) 2011 Luca Olivetti <luca@ventoso.org> 
     
    5959+ *  Copyright (C) 2013 Álvaro Fernández Rojas <noltari@gmail.com> 
    6060+ *  Copyright (C) 2013 Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> 
     61+ *  Copyright (C) 2015 Vittorio Gambaletta <openwrt@vittgam.net> 
    6162+ * 
    6263+ *  This program is free software; you can redistribute it and/or modify it 
     
    191192+               ath9k_pdata.led_pin = led_pin; 
    192193+               dev_info(&pdev->dev, "using led pin %d.\n", led_pin); 
     194+       } 
     195+ 
     196+       if (of_property_read_bool(np, "ath,led-active-high")) { 
     197+               ath9k_pdata.led_active_high = true; 
     198+               dev_info(&pdev->dev, "inverted LED polarity\n"); 
     199+       } 
     200+ 
     201+       if (of_property_read_bool(np, "ath,disable-2ghz")) { 
     202+               ath9k_pdata.disable_2ghz = true; 
     203+               dev_info(&pdev->dev, "disabled 2.4 GHz band\n"); 
     204+       } 
     205+ 
     206+       if (of_property_read_bool(np, "ath,disable-5ghz")) { 
     207+               ath9k_pdata.disable_5ghz = true; 
     208+               dev_info(&pdev->dev, "disabled 5 GHz band\n"); 
    193209+       } 
    194210+ 
Note: See TracChangeset for help on using the changeset viewer.