netdev.c (af3db60a30331d3a37b534570bc52dd64a7c0e5d) | netdev.c (0d2370e939acca97b5e1abc1aedd47c5c9a5f500) |
---|---|
1/* 2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 10 unchanged lines hidden (view full) --- 19#include "txrx.h" 20 21static int wil_open(struct net_device *ndev) 22{ 23 struct wil6210_priv *wil = ndev_to_wil(ndev); 24 25 wil_dbg_misc(wil, "open\n"); 26 | 1/* 2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 10 unchanged lines hidden (view full) --- 19#include "txrx.h" 20 21static int wil_open(struct net_device *ndev) 22{ 23 struct wil6210_priv *wil = ndev_to_wil(ndev); 24 25 wil_dbg_misc(wil, "open\n"); 26 |
27 if (debug_fw) { 28 wil_err(wil, "while in debug_fw mode\n"); | 27 if (debug_fw || 28 test_bit(WMI_FW_CAPABILITY_WMI_ONLY, wil->fw_capabilities)) { 29 wil_err(wil, "while in debug_fw or wmi_only mode\n"); |
29 return -EINVAL; 30 } 31 32 return wil_up(wil); 33} 34 35static int wil_stop(struct net_device *ndev) 36{ --- 205 unchanged lines hidden --- | 30 return -EINVAL; 31 } 32 33 return wil_up(wil); 34} 35 36static int wil_stop(struct net_device *ndev) 37{ --- 205 unchanged lines hidden --- |