/kernel/linux/linux-5.10/drivers/staging/wlan-ng/ |
D | p80211netdev.c | 105 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 …]
|
D | prism2sta.c | 102 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 …]
|
D | p80211req.c | 76 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 …]
|
D | prism2usb.c | 66 struct wlandevice *wlandev = NULL; in prism2sta_probe_usb() local 75 wlandev = create_wlan(); in prism2sta_probe_usb() 76 if (!wlandev) { in prism2sta_probe_usb() 81 hw = wlandev->priv; in prism2sta_probe_usb() 83 if (wlan_setup(wlandev, &interface->dev) != 0) { in prism2sta_probe_usb() 93 hw->wlandev = wlandev; in prism2sta_probe_usb() 98 SET_NETDEV_DEV(wlandev->netdev, &interface->dev); in prism2sta_probe_usb() 115 wlandev->msdstate = WLAN_MSD_HWPRESENT; in prism2sta_probe_usb() 118 prism2_fwtry(dev, wlandev); in prism2sta_probe_usb() 119 prism2sta_ifstate(wlandev, P80211ENUM_ifstate_enable); in prism2sta_probe_usb() [all …]
|
D | prism2mgmt.h | 67 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 …]
|
D | cfg80211.c | 39 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 …]
|
D | prism2mgmt.c | 129 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 …]
|
D | p80211conv.c | 108 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->a3.a2, wlandev->netdev->dev_addr, ETH_ALEN); in skb_ether_to_p80211() 180 memcpy(p80211_hdr->a3.a3, wlandev->bssid, ETH_ALEN); in skb_ether_to_p80211() 184 memcpy(p80211_hdr->a3.a1, wlandev->bssid, ETH_ALEN); in skb_ether_to_p80211() 185 memcpy(p80211_hdr->a3.a2, wlandev->netdev->dev_addr, ETH_ALEN); in skb_ether_to_p80211() 191 memcpy(p80211_hdr->a3.a2, 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 …]
|
D | p80211netdev.h | 179 int (*open)(struct wlandevice *wlandev); 180 int (*close)(struct wlandevice *wlandev); 181 void (*reset)(struct wlandevice *wlandev); 182 int (*txframe)(struct wlandevice *wlandev, struct sk_buff *skb, 185 int (*mlmerequest)(struct wlandevice *wlandev, struct p80211msg *msg); 186 int (*set_multicast_list)(struct wlandevice *wlandev, 188 void (*tx_timeout)(struct wlandevice *wlandev); 226 int wep_change_key(struct wlandevice *wlandev, int keynum, u8 *key, int keylen); 227 int wep_decrypt(struct wlandevice *wlandev, u8 *buf, u32 len, int key_override, 229 int wep_encrypt(struct wlandevice *wlandev, u8 *buf, u8 *dst, u32 len, [all …]
|
D | prism2mib.c | 91 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 …]
|
D | hfa384x_usb.c | 157 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 …]
|
D | prism2fw.c | 165 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 …]
|
D | p80211wep.c | 67 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()
|
D | p80211conv.h | 67 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); 157 int skb_p80211_to_ether(struct wlandevice *wlandev, u32 ethconv, 159 int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv,
|
D | p80211req.h | 52 int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf);
|
D | hfa384x.h | 1284 struct wlandevice *wlandev; member 1428 void hfa384x_tx_timeout(struct wlandevice *wlandev);
|