|
@@ -75,8 +75,6 @@ void mac802154_llsec_destroy(struct mac802154_llsec *sec)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
int mac802154_llsec_get_params(struct mac802154_llsec *sec,
|
|
int mac802154_llsec_get_params(struct mac802154_llsec *sec,
|
|
struct ieee802154_llsec_params *params)
|
|
struct ieee802154_llsec_params *params)
|
|
{
|
|
{
|
|
@@ -117,8 +115,6 @@ int mac802154_llsec_set_params(struct mac802154_llsec *sec,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static struct mac802154_llsec_key*
|
|
static struct mac802154_llsec_key*
|
|
llsec_key_alloc(const struct ieee802154_llsec_key *template)
|
|
llsec_key_alloc(const struct ieee802154_llsec_key *template)
|
|
{
|
|
{
|
|
@@ -294,8 +290,6 @@ int mac802154_llsec_key_del(struct mac802154_llsec *sec,
|
|
return -ENOENT;
|
|
return -ENOENT;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static bool llsec_dev_use_shortaddr(__le16 short_addr)
|
|
static bool llsec_dev_use_shortaddr(__le16 short_addr)
|
|
{
|
|
{
|
|
return short_addr != cpu_to_le16(IEEE802154_ADDR_UNDEF) &&
|
|
return short_addr != cpu_to_le16(IEEE802154_ADDR_UNDEF) &&
|
|
@@ -411,8 +405,6 @@ int mac802154_llsec_dev_del(struct mac802154_llsec *sec, __le64 device_addr)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static struct mac802154_llsec_device_key*
|
|
static struct mac802154_llsec_device_key*
|
|
llsec_devkey_find(struct mac802154_llsec_device *dev,
|
|
llsec_devkey_find(struct mac802154_llsec_device *dev,
|
|
const struct ieee802154_llsec_key_id *key)
|
|
const struct ieee802154_llsec_key_id *key)
|
|
@@ -475,8 +467,6 @@ int mac802154_llsec_devkey_del(struct mac802154_llsec *sec,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static struct mac802154_llsec_seclevel*
|
|
static struct mac802154_llsec_seclevel*
|
|
llsec_find_seclevel(const struct mac802154_llsec *sec,
|
|
llsec_find_seclevel(const struct mac802154_llsec *sec,
|
|
const struct ieee802154_llsec_seclevel *sl)
|
|
const struct ieee802154_llsec_seclevel *sl)
|
|
@@ -532,8 +522,6 @@ int mac802154_llsec_seclevel_del(struct mac802154_llsec *sec,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static int llsec_recover_addr(struct mac802154_llsec *sec,
|
|
static int llsec_recover_addr(struct mac802154_llsec *sec,
|
|
struct ieee802154_addr *addr)
|
|
struct ieee802154_addr *addr)
|
|
{
|
|
{
|
|
@@ -609,7 +597,6 @@ found:
|
|
return llsec_key_get(key);
|
|
return llsec_key_get(key);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
static void llsec_geniv(u8 iv[16], __le64 addr,
|
|
static void llsec_geniv(u8 iv[16], __le64 addr,
|
|
const struct ieee802154_sechdr *sec)
|
|
const struct ieee802154_sechdr *sec)
|
|
{
|
|
{
|
|
@@ -786,8 +773,6 @@ fail:
|
|
return rc;
|
|
return rc;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static struct mac802154_llsec_device*
|
|
static struct mac802154_llsec_device*
|
|
llsec_lookup_dev(struct mac802154_llsec *sec,
|
|
llsec_lookup_dev(struct mac802154_llsec *sec,
|
|
const struct ieee802154_addr *addr)
|
|
const struct ieee802154_addr *addr)
|