| 1 | --- a/arch/mips/ath79/dev-wmac.c |
| 2 | +++ b/arch/mips/ath79/dev-wmac.c |
| 3 | @@ -287,6 +287,16 @@ bool __init ar93xx_wmac_read_mac_address |
| 4 | return ret; |
| 5 | } |
| 6 | |
| 7 | +void __init ath79_wmac_disable_2ghz(void) |
| 8 | +{ |
| 9 | + ath79_wmac_data.disable_2ghz = true; |
| 10 | +} |
| 11 | + |
| 12 | +void __init ath79_wmac_disable_5ghz(void) |
| 13 | +{ |
| 14 | + ath79_wmac_data.disable_5ghz = true; |
| 15 | +} |
| 16 | + |
| 17 | void __init ath79_register_wmac(u8 *cal_data, u8 *mac_addr) |
| 18 | { |
| 19 | if (soc_is_ar913x()) |
| 20 | --- a/arch/mips/ath79/dev-wmac.h |
| 21 | +++ b/arch/mips/ath79/dev-wmac.h |
| 22 | @@ -14,6 +14,9 @@ |
| 23 | |
| 24 | void ath79_register_wmac(u8 *cal_data, u8 *mac_addr); |
| 25 | void ath79_register_wmac_simple(void); |
| 26 | +void ath79_wmac_disable_2ghz(void); |
| 27 | +void ath79_wmac_disable_5ghz(void); |
| 28 | + |
| 29 | bool ar93xx_wmac_read_mac_address(u8 *dest); |
| 30 | |
| 31 | #endif /* _ATH79_DEV_WMAC_H */ |
| 32 | |