mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 15:56:42 +07:00
ea60a6aaf5
Initialise and register a wiphy. Store the orinoco_private structure in the new wiphy, and use the net_device private area to store the wireless_dev. This results in a change to the way we navigate from a net_device to the driver private orinoco_private, which we encapsulate in the inline function ndev_priv. Most of the remaining calls to netdev_priv are thus replaced by ndev_priv. We can immediately rely on cfg80211 to handle SIOCGIWNAME, so orinoco_ioctl_getname is removed. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
16 lines
308 B
C
16 lines
308 B
C
/* cfg80211 support.
|
|
*
|
|
* See copyright notice in main.c
|
|
*/
|
|
#ifndef ORINOCO_CFG_H
|
|
#define ORINOCO_CFG_H
|
|
|
|
#include <net/cfg80211.h>
|
|
|
|
extern const struct cfg80211_ops orinoco_cfg_ops;
|
|
|
|
void orinoco_wiphy_init(struct wiphy *wiphy);
|
|
int orinoco_wiphy_register(struct wiphy *wiphy);
|
|
|
|
#endif /* ORINOCO_CFG_H */
|