2009-08-06 21:25:28 +08:00
|
|
|
/*
|
|
|
|
* This file is part of wl1271
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Nokia Corporation
|
|
|
|
*
|
|
|
|
* Contact: Luciano Coelho <luciano.coelho@nokia.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-11-08 19:20:10 +08:00
|
|
|
#ifndef __INIT_H__
|
|
|
|
#define __INIT_H__
|
2009-08-06 21:25:28 +08:00
|
|
|
|
2011-11-22 01:25:24 +08:00
|
|
|
#include "wlcore.h"
|
2009-08-06 21:25:28 +08:00
|
|
|
|
|
|
|
int wl1271_hw_init_power_auth(struct wl1271 *wl);
|
2011-10-05 17:55:40 +08:00
|
|
|
int wl1271_init_templates_config(struct wl1271 *wl);
|
2010-02-18 19:25:44 +08:00
|
|
|
int wl1271_init_pta(struct wl1271 *wl);
|
|
|
|
int wl1271_init_energy_detection(struct wl1271 *wl);
|
2011-03-06 22:32:08 +08:00
|
|
|
int wl1271_chip_specific_init(struct wl1271 *wl);
|
2011-10-05 17:55:40 +08:00
|
|
|
int wl1271_hw_init(struct wl1271 *wl);
|
|
|
|
int wl1271_init_vif_specific(struct wl1271 *wl, struct ieee80211_vif *vif);
|
2011-10-05 17:55:41 +08:00
|
|
|
int wl1271_init_ap_rates(struct wl1271 *wl, struct wl12xx_vif *wlvif);
|
2011-10-05 17:55:39 +08:00
|
|
|
int wl1271_ap_init_templates(struct wl1271 *wl, struct ieee80211_vif *vif);
|
wlcore: add p2p device support
When starting a p2p mgmt interface, enable its device role. This
allows us to keep the sta role disabled and scan on the dev role.
In general, p2p management interfaces cannot send vif-specific commands
to FW, as the vif role id is invalid. Only off-channel data and scans
happen on this vif, so most ops are not relevant.
If the vif is a p2p mgmt vif, block some mac80211 ops.
Configure rate policies for p2p mgmt interface, as
otherwise p2p packets come out with arbitrary rates.
Since wpa_supplicant currently doesn't support standalone
p2p device mode (without another attached managed interface),
add p2p device to the allowed interface combinations without
decreasing the allowed station count.
Moreover, increase the station count in some cases, as AP
mode usually starts as station interface, and the AP interface
is now different from the p2p management one).
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2015-07-31 03:38:22 +08:00
|
|
|
int wl1271_sta_hw_init(struct wl1271 *wl, struct wl12xx_vif *wlvif);
|
2009-08-06 21:25:28 +08:00
|
|
|
|
|
|
|
#endif
|