| .. | .. |
|---|
| 1 | | -/****************************************************************************** |
|---|
| 2 | | - * |
|---|
| 3 | | - * Copyright(c) 2009-2012 Realtek Corporation. |
|---|
| 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 | #ifndef __RTL92C__FW__COMMON__H__ |
|---|
| 27 | 5 | #define __RTL92C__FW__COMMON__H__ |
|---|
| .. | .. |
|---|
| 68 | 46 | #define pagenum_128(_len) (u32)(((_len)>>7) + ((_len)&0x7F ? 1 : 0)) |
|---|
| 69 | 47 | |
|---|
| 70 | 48 | #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ |
|---|
| 71 | | - SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) |
|---|
| 49 | + *(u8 *)(__ph2ccmd) = __val |
|---|
| 72 | 50 | #define SET_H2CCMD_PWRMODE_PARM_SMART_PS(__ph2ccmd, __val) \ |
|---|
| 73 | | - SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) |
|---|
| 51 | + *(u8 *)(__ph2ccmd + 1) = __val |
|---|
| 74 | 52 | #define SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME(__ph2ccmd, __val) \ |
|---|
| 75 | | - SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val) |
|---|
| 53 | + *(u8 *)(__ph2ccmd + 2) = __val |
|---|
| 76 | 54 | #define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val) \ |
|---|
| 77 | | - SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) |
|---|
| 55 | + *(u8 *)(__ph2ccmd) = __val |
|---|
| 78 | 56 | #define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val) \ |
|---|
| 79 | | - SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) |
|---|
| 57 | + *(u8 *)(__ph2ccmd) = __val |
|---|
| 80 | 58 | #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ |
|---|
| 81 | | - SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) |
|---|
| 59 | + *(u8 *)(__ph2ccmd + 1) = __val |
|---|
| 82 | 60 | #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ |
|---|
| 83 | | - SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val) |
|---|
| 61 | + *(u8 *)(__ph2ccmd + 2) = __val |
|---|
| 84 | 62 | |
|---|
| 85 | 63 | int rtl92c_download_fw(struct ieee80211_hw *hw); |
|---|
| 86 | 64 | void rtl92c_fill_h2c_cmd(struct ieee80211_hw *hw, u8 element_id, |
|---|