6 { .center_freq = 2412 },
7 { .center_freq = 2417 },
8 { .center_freq = 2422 },
9 { .center_freq = 2427 },
10 { .center_freq = 2432 },
11 { .center_freq = 2437 },
12 { .center_freq = 2442 },
13 { .center_freq = 2447 },
14 { .center_freq = 2452 },
15 { .center_freq = 2457 },
16 { .center_freq = 2462 },
17 { .center_freq = 2467 },
18 { .center_freq = 2472 },
19 { .center_freq = 2484 },
29 #define PRISM2_NUM_CIPHER_SUITES 2
47 static const void *
const prism2_wiphy_privid = &prism2_wiphy_privid;
51 static int prism2_result2err(
int prism2_result)
55 switch (prism2_result) {
93 mibitem->data.len = len;
94 memcpy(mibitem->data.data, data, len);
130 result = prism2_domibset_uint32(wlandev,
156 result = prism2_domibset_uint32(wlandev,
185 result = prism2_domibset_pstr32(wlandev, did, params->
key_len, params->
key);
191 pr_debug(
"Unsupported cipher suite\n");
214 memset(¶ms, 0,
sizeof(params));
232 u8 key_index,
bool pairwise,
const u8 *mac_addr)
268 result = prism2_domibset_pstr32(wlandev, did, 13,
"0000000000000");
278 u8 key_index,
bool unicast,
bool multicast)
285 result = prism2_domibset_uint32(wlandev,
303 memset(sinfo, 0,
sizeof(*sinfo));
348 dev = request->
wdev->netdev;
372 request->
ssids->ssid, request->
ssids->ssid_len);
396 for (i = 0; i < numbss; i++) {
397 memset(&msg2, 0,
sizeof(msg2));
409 ie_len = ie_buf[1] + 2;
412 ieee80211_get_channel(wiphy, ieee80211_dsss_chan_to_freq(msg2.
dschannel.
data)),
453 result = prism2_domibset_uint32(wlandev,
468 result = prism2_domibset_uint32(wlandev,
498 result = prism2_domibset_uint32(wlandev,
514 "Unhandled authorisation type for connect (%d)\n",
520 result = prism2_domibset_uint32(wlandev,
549 result = prism2_domibset_pstr32(wlandev,
560 result = prism2_domibset_uint32(wlandev,
566 result = prism2_domibset_uint32(wlandev,
575 result = prism2_domibset_uint32(wlandev,
581 result = prism2_domibset_uint32(wlandev,
655 result = prism2_domibset_uint32(wlandev,
689 *dbm = mibitem->data;
746 wiphy =
wiphy_new(&prism2_usb_cfg_ops,
sizeof(*priv));
750 priv = wiphy_priv(wiphy);
753 memcpy(priv->
rates, prism2_rates,
sizeof(prism2_rates));
759 priv->
band.ht_cap.ht_supported =
false;
762 set_wiphy_dev(wiphy, dev);
763 wiphy->
privid = prism2_wiphy_privid;