cfg.c (446279168e030fd0ed68e2bba336bef8bb3da352) cfg.c (e7a7b84e33178db4a839c5e1773247be17597c1f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Implement cfg80211 ("iw") support.
4 *
5 * Copyright (C) 2009 M&N Solutions GmbH, 61191 Rosbach, Germany
6 * Holger Schurig <hs4233@mail.mn-solutions.de>
7 *
8 */

--- 1421 unchanged lines hidden (view full) ---

1430
1431 /* store for lbs_cfg_ret_disconnect() */
1432 priv->disassoc_reason = reason_code;
1433
1434 return lbs_disconnect(priv, reason_code);
1435}
1436
1437static int lbs_cfg_set_default_key(struct wiphy *wiphy,
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Implement cfg80211 ("iw") support.
4 *
5 * Copyright (C) 2009 M&N Solutions GmbH, 61191 Rosbach, Germany
6 * Holger Schurig <hs4233@mail.mn-solutions.de>
7 *
8 */

--- 1421 unchanged lines hidden (view full) ---

1430
1431 /* store for lbs_cfg_ret_disconnect() */
1432 priv->disassoc_reason = reason_code;
1433
1434 return lbs_disconnect(priv, reason_code);
1435}
1436
1437static int lbs_cfg_set_default_key(struct wiphy *wiphy,
1438 struct net_device *netdev,
1438 struct net_device *netdev, int link_id,
1439 u8 key_index, bool unicast,
1440 bool multicast)
1441{
1442 struct lbs_private *priv = wiphy_priv(wiphy);
1443
1444 if (netdev == priv->mesh_dev)
1445 return -EOPNOTSUPP;
1446
1447 if (key_index != priv->wep_tx_key) {
1448 lbs_deb_assoc("set_default_key: to %d\n", key_index);
1449 priv->wep_tx_key = key_index;
1450 lbs_set_wep_keys(priv);
1451 }
1452
1453 return 0;
1454}
1455
1456
1457static int lbs_cfg_add_key(struct wiphy *wiphy, struct net_device *netdev,
1439 u8 key_index, bool unicast,
1440 bool multicast)
1441{
1442 struct lbs_private *priv = wiphy_priv(wiphy);
1443
1444 if (netdev == priv->mesh_dev)
1445 return -EOPNOTSUPP;
1446
1447 if (key_index != priv->wep_tx_key) {
1448 lbs_deb_assoc("set_default_key: to %d\n", key_index);
1449 priv->wep_tx_key = key_index;
1450 lbs_set_wep_keys(priv);
1451 }
1452
1453 return 0;
1454}
1455
1456
1457static int lbs_cfg_add_key(struct wiphy *wiphy, struct net_device *netdev,
1458 u8 idx, bool pairwise, const u8 *mac_addr,
1459 struct key_params *params)
1458 int link_id, u8 idx, bool pairwise,
1459 const u8 *mac_addr, struct key_params *params)
1460{
1461 struct lbs_private *priv = wiphy_priv(wiphy);
1462 u16 key_info;
1463 u16 key_type;
1464 int ret = 0;
1465
1466 if (netdev == priv->mesh_dev)
1467 return -EOPNOTSUPP;

--- 43 unchanged lines hidden (view full) ---

1511 break;
1512 }
1513
1514 return ret;
1515}
1516
1517
1518static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev,
1460{
1461 struct lbs_private *priv = wiphy_priv(wiphy);
1462 u16 key_info;
1463 u16 key_type;
1464 int ret = 0;
1465
1466 if (netdev == priv->mesh_dev)
1467 return -EOPNOTSUPP;

--- 43 unchanged lines hidden (view full) ---

1511 break;
1512 }
1513
1514 return ret;
1515}
1516
1517
1518static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev,
1519 u8 key_index, bool pairwise, const u8 *mac_addr)
1519 int link_id, u8 key_index, bool pairwise,
1520 const u8 *mac_addr)
1520{
1521
1522 lbs_deb_assoc("del_key: key_idx %d, mac_addr %pM\n",
1523 key_index, mac_addr);
1524
1525#ifdef TODO
1526 struct lbs_private *priv = wiphy_priv(wiphy);
1527 /*

--- 638 unchanged lines hidden ---
1521{
1522
1523 lbs_deb_assoc("del_key: key_idx %d, mac_addr %pM\n",
1524 key_index, mac_addr);
1525
1526#ifdef TODO
1527 struct lbs_private *priv = wiphy_priv(wiphy);
1528 /*

--- 638 unchanged lines hidden ---