| .. | .. |
|---|
| 1 | | -/****************************************************************************** |
|---|
| 2 | | - * |
|---|
| 3 | | - * Copyright(c) 2009-2012 Realtek Corporation. All rights reserved. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | - * under the terms of version 2 of the GNU General Public License as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | - * more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * The full GNU General Public License is included in this distribution in the |
|---|
| 15 | | - * file called LICENSE. |
|---|
| 16 | | - * |
|---|
| 17 | | - * Contact Information: |
|---|
| 18 | | - * wlanfae <wlanfae@realtek.com> |
|---|
| 19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
|---|
| 20 | | - * Hsinchu 300, Taiwan. |
|---|
| 21 | | - * |
|---|
| 22 | | - * Larry Finger <Larry.Finger@lwfinger.net> |
|---|
| 23 | | - * |
|---|
| 24 | | - *****************************************************************************/ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | +/* Copyright(c) 2009-2012 Realtek Corporation.*/ |
|---|
| 25 | 3 | |
|---|
| 26 | 4 | #include "../wifi.h" |
|---|
| 27 | 5 | #include "../core.h" |
|---|
| .. | .. |
|---|
| 34 | 12 | #include "mac.h" |
|---|
| 35 | 13 | #include "dm.h" |
|---|
| 36 | 14 | #include "rf.h" |
|---|
| 37 | | -#include "sw.h" |
|---|
| 38 | 15 | #include "trx.h" |
|---|
| 39 | 16 | #include "led.h" |
|---|
| 40 | 17 | #include "hw.h" |
|---|
| .. | .. |
|---|
| 61 | 38 | rtlpriv->dm.dm_flag = 0; |
|---|
| 62 | 39 | rtlpriv->dm.disable_framebursting = false; |
|---|
| 63 | 40 | rtlpriv->dm.thermalvalue = 0; |
|---|
| 64 | | - rtlpriv->cfg->mod_params->sw_crypto = |
|---|
| 65 | | - rtlpriv->cfg->mod_params->sw_crypto; |
|---|
| 66 | 41 | |
|---|
| 67 | 42 | /* for firmware buf */ |
|---|
| 68 | 43 | rtlpriv->rtlhal.pfirmware = vzalloc(0x4000); |
|---|
| .. | .. |
|---|
| 276 | 251 | .maps[RTL_RC_HT_RATEMCS15] = DESC_RATEMCS15, |
|---|
| 277 | 252 | }; |
|---|
| 278 | 253 | |
|---|
| 279 | | -#define USB_VENDER_ID_REALTEK 0x0bda |
|---|
| 254 | +#define USB_VENDOR_ID_REALTEK 0x0bda |
|---|
| 280 | 255 | |
|---|
| 281 | 256 | /* 2010-10-19 DID_USB_V3.4 */ |
|---|
| 282 | 257 | static const struct usb_device_id rtl8192c_usb_ids[] = { |
|---|
| 283 | 258 | |
|---|
| 284 | 259 | /*=== Realtek demoboard ===*/ |
|---|
| 285 | 260 | /* Default ID */ |
|---|
| 286 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8191, rtl92cu_hal_cfg)}, |
|---|
| 261 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x8191, rtl92cu_hal_cfg)}, |
|---|
| 287 | 262 | |
|---|
| 288 | 263 | /****** 8188CU ********/ |
|---|
| 289 | 264 | /* RTL8188CTV */ |
|---|
| 290 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x018a, rtl92cu_hal_cfg)}, |
|---|
| 265 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x018a, rtl92cu_hal_cfg)}, |
|---|
| 291 | 266 | /* 8188CE-VAU USB minCard */ |
|---|
| 292 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8170, rtl92cu_hal_cfg)}, |
|---|
| 267 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x8170, rtl92cu_hal_cfg)}, |
|---|
| 293 | 268 | /* 8188cu 1*1 dongle */ |
|---|
| 294 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8176, rtl92cu_hal_cfg)}, |
|---|
| 269 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x8176, rtl92cu_hal_cfg)}, |
|---|
| 295 | 270 | /* 8188cu 1*1 dongle, (b/g mode only) */ |
|---|
| 296 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8177, rtl92cu_hal_cfg)}, |
|---|
| 271 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x8177, rtl92cu_hal_cfg)}, |
|---|
| 297 | 272 | /* 8188cu Slim Solo */ |
|---|
| 298 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817a, rtl92cu_hal_cfg)}, |
|---|
| 273 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x817a, rtl92cu_hal_cfg)}, |
|---|
| 299 | 274 | /* 8188cu Slim Combo */ |
|---|
| 300 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817b, rtl92cu_hal_cfg)}, |
|---|
| 275 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x817b, rtl92cu_hal_cfg)}, |
|---|
| 301 | 276 | /* 8188RU High-power USB Dongle */ |
|---|
| 302 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817d, rtl92cu_hal_cfg)}, |
|---|
| 277 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x817d, rtl92cu_hal_cfg)}, |
|---|
| 303 | 278 | /* 8188CE-VAU USB minCard (b/g mode only) */ |
|---|
| 304 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817e, rtl92cu_hal_cfg)}, |
|---|
| 279 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x817e, rtl92cu_hal_cfg)}, |
|---|
| 305 | 280 | /* 8188RU in Alfa AWUS036NHR */ |
|---|
| 306 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817f, rtl92cu_hal_cfg)}, |
|---|
| 281 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x817f, rtl92cu_hal_cfg)}, |
|---|
| 307 | 282 | /* RTL8188CUS-VL */ |
|---|
| 308 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x818a, rtl92cu_hal_cfg)}, |
|---|
| 309 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x819a, rtl92cu_hal_cfg)}, |
|---|
| 283 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x818a, rtl92cu_hal_cfg)}, |
|---|
| 284 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x819a, rtl92cu_hal_cfg)}, |
|---|
| 310 | 285 | /* 8188 Combo for BC4 */ |
|---|
| 311 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8754, rtl92cu_hal_cfg)}, |
|---|
| 286 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x8754, rtl92cu_hal_cfg)}, |
|---|
| 312 | 287 | |
|---|
| 313 | 288 | /****** 8192CU ********/ |
|---|
| 314 | 289 | /* 8192cu 2*2 */ |
|---|
| 315 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8178, rtl92cu_hal_cfg)}, |
|---|
| 290 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x8178, rtl92cu_hal_cfg)}, |
|---|
| 316 | 291 | /* 8192CE-VAU USB minCard */ |
|---|
| 317 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817c, rtl92cu_hal_cfg)}, |
|---|
| 292 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x817c, rtl92cu_hal_cfg)}, |
|---|
| 318 | 293 | |
|---|
| 319 | 294 | /*=== Customer ID ===*/ |
|---|
| 320 | 295 | /****** 8188CU ********/ |
|---|
| .. | .. |
|---|
| 353 | 328 | |
|---|
| 354 | 329 | /****** 8188 RU ********/ |
|---|
| 355 | 330 | /* Netcore */ |
|---|
| 356 | | - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x317f, rtl92cu_hal_cfg)}, |
|---|
| 331 | + {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x317f, rtl92cu_hal_cfg)}, |
|---|
| 357 | 332 | |
|---|
| 358 | 333 | /****** 8188CUS Slim Solo********/ |
|---|
| 359 | 334 | {RTL_USB_DEVICE(0x04f2, 0xaff7, rtl92cu_hal_cfg)}, /*Xavi*/ |
|---|