| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* ZD1211 USB-WLAN driver for Linux |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de> |
|---|
| 4 | 5 | * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License |
|---|
| 17 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|---|
| 18 | 6 | */ |
|---|
| 19 | 7 | |
|---|
| 20 | 8 | /* This file implements all the hardware specific functions for the ZD1211 |
|---|
| .. | .. |
|---|
| 53 | 41 | static int scnprint_mac_oui(struct zd_chip *chip, char *buffer, size_t size) |
|---|
| 54 | 42 | { |
|---|
| 55 | 43 | u8 *addr = zd_mac_get_perm_addr(zd_chip_to_mac(chip)); |
|---|
| 56 | | - return scnprintf(buffer, size, "%02x-%02x-%02x", |
|---|
| 57 | | - addr[0], addr[1], addr[2]); |
|---|
| 44 | + return scnprintf(buffer, size, "%3phD", addr); |
|---|
| 58 | 45 | } |
|---|
| 59 | 46 | |
|---|
| 60 | 47 | /* Prints an identifier line, which will support debugging. */ |
|---|
| .. | .. |
|---|
| 1388 | 1375 | |
|---|
| 1389 | 1376 | /** |
|---|
| 1390 | 1377 | * zd_rx_rate - report zd-rate |
|---|
| 1391 | | - * @rx_frame - received frame |
|---|
| 1392 | | - * @rx_status - rx_status as given by the device |
|---|
| 1378 | + * @rx_frame: received frame |
|---|
| 1379 | + * @status: rx_status as given by the device |
|---|
| 1393 | 1380 | * |
|---|
| 1394 | 1381 | * This function converts the rate as encoded in the received packet to the |
|---|
| 1395 | 1382 | * zd-rate, we are using on other places in the driver. |
|---|