Home
last modified time | relevance | path

Searched refs:wlandev (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/drivers/staging/wlan-ng/
Dp80211netdev.c105 static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc);
155 struct wlandevice *wlandev = netdev->ml_priv; in p80211knetdev_open() local
158 if (wlandev->msdstate != WLAN_MSD_RUNNING) in p80211knetdev_open()
162 if (wlandev->open) { in p80211knetdev_open()
163 result = wlandev->open(wlandev); in p80211knetdev_open()
165 netif_start_queue(wlandev->netdev); in p80211knetdev_open()
166 wlandev->state = WLAN_DEVICE_OPEN; in p80211knetdev_open()
191 struct wlandevice *wlandev = netdev->ml_priv; in p80211knetdev_stop() local
193 if (wlandev->close) in p80211knetdev_stop()
194 result = wlandev->close(wlandev); in p80211knetdev_stop()
[all …]
Dprism2sta.c102 static int prism2sta_open(struct wlandevice *wlandev);
103 static int prism2sta_close(struct wlandevice *wlandev);
104 static void prism2sta_reset(struct wlandevice *wlandev);
105 static int prism2sta_txframe(struct wlandevice *wlandev, struct sk_buff *skb,
108 static int prism2sta_mlmerequest(struct wlandevice *wlandev,
110 static int prism2sta_getcardinfo(struct wlandevice *wlandev);
111 static int prism2sta_globalsetup(struct wlandevice *wlandev);
112 static int prism2sta_setmulticast(struct wlandevice *wlandev,
115 static void prism2sta_inf_handover(struct wlandevice *wlandev,
117 static void prism2sta_inf_tallies(struct wlandevice *wlandev,
[all …]
Dp80211req.c76 static void p80211req_handlemsg(struct wlandevice *wlandev,
78 static void p80211req_mibset_mibget(struct wlandevice *wlandev,
82 static void p80211req_handle_action(struct wlandevice *wlandev, u32 *data, in p80211req_handle_action() argument
86 if (wlandev->hostwep & flag) in p80211req_handle_action()
91 wlandev->hostwep &= ~flag; in p80211req_handle_action()
93 wlandev->hostwep |= flag; in p80211req_handle_action()
114 int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf) in p80211req_dorequest() argument
119 if (!((wlandev->msdstate == WLAN_MSD_HWPRESENT && in p80211req_dorequest()
121 wlandev->msdstate == WLAN_MSD_RUNNING || in p80211req_dorequest()
122 wlandev->msdstate == WLAN_MSD_FWLOAD)) { in p80211req_dorequest()
[all …]
Dprism2usb.c65 struct wlandevice *wlandev = NULL; in prism2sta_probe_usb() local
74 wlandev = create_wlan(); in prism2sta_probe_usb()
75 if (!wlandev) { in prism2sta_probe_usb()
80 hw = wlandev->priv; in prism2sta_probe_usb()
82 if (wlan_setup(wlandev, &interface->dev) != 0) { in prism2sta_probe_usb()
92 hw->wlandev = wlandev; in prism2sta_probe_usb()
97 SET_NETDEV_DEV(wlandev->netdev, &interface->dev); in prism2sta_probe_usb()
114 wlandev->msdstate = WLAN_MSD_HWPRESENT; in prism2sta_probe_usb()
117 prism2_fwtry(dev, wlandev); in prism2sta_probe_usb()
118 prism2sta_ifstate(wlandev, P80211ENUM_ifstate_enable); in prism2sta_probe_usb()
[all …]
Dprism2mgmt.h67 u32 prism2sta_ifstate(struct wlandevice *wlandev, u32 ifstate);
69 void prism2sta_ev_info(struct wlandevice *wlandev,
71 void prism2sta_ev_txexc(struct wlandevice *wlandev, u16 status);
72 void prism2sta_ev_tx(struct wlandevice *wlandev, u16 status);
73 void prism2sta_ev_alloc(struct wlandevice *wlandev);
75 int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp);
76 int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp);
77 int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp);
78 int prism2mgmt_start(struct wlandevice *wlandev, void *msgp);
79 int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp);
[all …]
Dcfg80211.c39 struct wlandevice *wlandev; member
73 static int prism2_domibset_uint32(struct wlandevice *wlandev, in prism2_domibset_uint32() argument
84 return p80211req_dorequest(wlandev, (u8 *)&msg); in prism2_domibset_uint32()
87 static int prism2_domibset_pstr32(struct wlandevice *wlandev, in prism2_domibset_pstr32() argument
99 return p80211req_dorequest(wlandev, (u8 *)&msg); in prism2_domibset_pstr32()
108 struct wlandevice *wlandev = dev->ml_priv; in prism2_change_virtual_intf() local
115 if (wlandev->macmode == WLAN_MACMODE_IBSS_STA) in prism2_change_virtual_intf()
117 wlandev->macmode = WLAN_MACMODE_IBSS_STA; in prism2_change_virtual_intf()
121 if (wlandev->macmode == WLAN_MACMODE_ESS_STA) in prism2_change_virtual_intf()
123 wlandev->macmode = WLAN_MACMODE_ESS_STA; in prism2_change_virtual_intf()
[all …]
Dprism2mgmt.c129 int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp) in prism2mgmt_scan() argument
132 struct hfa384x *hw = wlandev->priv; in prism2mgmt_scan()
145 netdev_err(wlandev->netdev, in prism2mgmt_scan()
159 netdev_err(wlandev->netdev, in prism2mgmt_scan()
171 netdev_err(wlandev->netdev, in prism2mgmt_scan()
193 netdev_warn(wlandev->netdev, in prism2mgmt_scan()
221 netdev_err(wlandev->netdev, in prism2mgmt_scan()
234 netdev_err(wlandev->netdev, in prism2mgmt_scan()
250 netdev_err(wlandev->netdev, "Failed to set OwnSSID.\n"); in prism2mgmt_scan()
259 netdev_err(wlandev->netdev, in prism2mgmt_scan()
[all …]
Dp80211conv.c108 int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv, in skb_ether_to_p80211() argument
176 switch (wlandev->macmode) { in skb_ether_to_p80211()
179 memcpy(p80211_hdr->address2, wlandev->netdev->dev_addr, ETH_ALEN); in skb_ether_to_p80211()
180 memcpy(p80211_hdr->address3, wlandev->bssid, ETH_ALEN); in skb_ether_to_p80211()
184 memcpy(p80211_hdr->address1, wlandev->bssid, ETH_ALEN); in skb_ether_to_p80211()
185 memcpy(p80211_hdr->address2, wlandev->netdev->dev_addr, ETH_ALEN); in skb_ether_to_p80211()
191 memcpy(p80211_hdr->address2, wlandev->bssid, ETH_ALEN); in skb_ether_to_p80211()
195 netdev_err(wlandev->netdev, in skb_ether_to_p80211()
202 if ((wlandev->hostwep & HOSTWEP_PRIVACYINVOKED) && in skb_ether_to_p80211()
203 (wlandev->hostwep & HOSTWEP_ENCRYPT)) { in skb_ether_to_p80211()
[all …]
Dp80211netdev.h177 int (*open)(struct wlandevice *wlandev);
178 int (*close)(struct wlandevice *wlandev);
179 void (*reset)(struct wlandevice *wlandev);
180 int (*txframe)(struct wlandevice *wlandev, struct sk_buff *skb,
183 int (*mlmerequest)(struct wlandevice *wlandev, struct p80211msg *msg);
184 int (*set_multicast_list)(struct wlandevice *wlandev,
186 void (*tx_timeout)(struct wlandevice *wlandev);
224 int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen);
225 int wep_decrypt(struct wlandevice *wlandev, u8 *buf, u32 len, int key_override,
227 int wep_encrypt(struct wlandevice *wlandev, u8 *buf, u8 *dst, u32 len,
[all …]
Dprism2mib.c91 struct wlandevice *wlandev,
98 struct wlandevice *wlandev,
105 struct wlandevice *wlandev,
111 struct wlandevice *wlandev,
117 struct wlandevice *wlandev,
124 struct wlandevice *wlandev,
132 struct wlandevice *wlandev,
139 struct wlandevice *wlandev,
254 int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp) in prism2mgmt_mibset_mibget() argument
256 struct hfa384x *hw = wlandev->priv; in prism2mgmt_mibset_mibget()
[all …]
Dhfa384x_usb.c157 static void hfa384x_int_rxmonitor(struct wlandevice *wlandev,
173 hfa384x_usbin_txcompl(struct wlandevice *wlandev, union hfa384x_usbin *usbin);
175 static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb);
177 static void hfa384x_usbin_info(struct wlandevice *wlandev,
338 hfa384x_usbin_callback, hw->wlandev); in submit_rx_urb()
343 if (!hw->wlandev->hwremoved && in submit_rx_urb()
349 netdev_warn(hw->wlandev->netdev, in submit_rx_urb()
351 hw->wlandev->netdev->name); in submit_rx_urb()
388 struct net_device *netdev = hw->wlandev->netdev; in submit_tx_urb()
393 if (!hw->wlandev->hwremoved && in submit_tx_urb()
[all …]
Dprism2fw.c165 struct wlandevice *wlandev);
171 static int read_cardpda(struct pda *pda, struct wlandevice *wlandev);
182 static int writeimage(struct wlandevice *wlandev, struct imgchunk *fchunk,
208 static int prism2_fwtry(struct usb_device *udev, struct wlandevice *wlandev) in prism2_fwtry() argument
212 netdev_info(wlandev->netdev, "prism2_usb: Checking for firmware %s\n", in prism2_fwtry()
216 netdev_info(wlandev->netdev, in prism2_fwtry()
218 netdev_info(wlandev->netdev, in prism2_fwtry()
223 netdev_info(wlandev->netdev, in prism2_fwtry()
226 prism2_fwapply((const struct ihex_binrec *)fw_entry->data, wlandev); in prism2_fwtry()
247 struct wlandevice *wlandev) in prism2_fwapply() argument
[all …]
Dp80211wep.c67 int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen) in wep_change_key() argument
80 wlandev->wep_keylens[keynum] = keylen; in wep_change_key()
81 memcpy(wlandev->wep_keys[keynum], key, keylen); in wep_change_key()
90 int wep_decrypt(struct wlandevice *wlandev, u8 *buf, u32 len, int key_override, in wep_decrypt() argument
113 keylen = wlandev->wep_keylens[keyidx]; in wep_decrypt()
119 memcpy(key + 3, wlandev->wep_keys[keyidx], keylen); in wep_decrypt()
161 int wep_encrypt(struct wlandevice *wlandev, u8 *buf, in wep_encrypt() argument
174 keylen = wlandev->wep_keylens[keynum]; in wep_encrypt()
190 memcpy(key + 3, wlandev->wep_keys[keynum], keylen); in wep_encrypt()
Dp80211conv.h67 struct wlandevice *wlandev; member
87 void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb);
88 int p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb);
154 int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv,
156 int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv,
Dp80211req.h52 int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf);
Dhfa384x.h1271 struct wlandevice *wlandev; member
1415 void hfa384x_tx_timeout(struct wlandevice *wlandev);