init.c (28336be568bb473d16ba80db0801276fb4f1bbe5) | init.c (96747a51fe62eb13481a39438453262d22148fa7) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * (c) Copyright 2002-2010, Ralink Technology, Inc. 4 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org> 5 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl> 6 * Copyright (C) 2018 Stanislaw Gruszka <stf_xl@wp.pl> 7 */ 8 --- 250 unchanged lines hidden (view full) --- 259 260 ret = mt76_register_device(&dev->mt76, true, mt76x02_rates, 261 ARRAY_SIZE(mt76x02_rates)); 262 if (ret) 263 return ret; 264 265 if (dev->mt76.cap.has_5ghz) { 266 /* overwrite unsupported features */ | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * (c) Copyright 2002-2010, Ralink Technology, Inc. 4 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org> 5 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl> 6 * Copyright (C) 2018 Stanislaw Gruszka <stf_xl@wp.pl> 7 */ 8 --- 250 unchanged lines hidden (view full) --- 259 260 ret = mt76_register_device(&dev->mt76, true, mt76x02_rates, 261 ARRAY_SIZE(mt76x02_rates)); 262 if (ret) 263 return ret; 264 265 if (dev->mt76.cap.has_5ghz) { 266 /* overwrite unsupported features */ |
267 mt76x0_vht_cap_mask(&dev->mt76.sband_5g.sband); 268 mt76x0_init_txpower(dev, &dev->mt76.sband_5g.sband); | 267 mt76x0_vht_cap_mask(&dev->mphy.sband_5g.sband); 268 mt76x0_init_txpower(dev, &dev->mphy.sband_5g.sband); |
269 } 270 271 if (dev->mt76.cap.has_2ghz) | 269 } 270 271 if (dev->mt76.cap.has_2ghz) |
272 mt76x0_init_txpower(dev, &dev->mt76.sband_2g.sband); | 272 mt76x0_init_txpower(dev, &dev->mphy.sband_2g.sband); |
273 274 mt76x02_init_debugfs(dev); 275 276 return 0; 277} 278EXPORT_SYMBOL_GPL(mt76x0_register_device); | 273 274 mt76x02_init_debugfs(dev); 275 276 return 0; 277} 278EXPORT_SYMBOL_GPL(mt76x0_register_device); |