]> git.ipfire.org Git - people/ms/network.git/commitdiff
libnetwork: Fix typo in RX-LDPC HT capability
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Sep 2018 14:42:20 +0000 (15:42 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Sep 2018 14:42:20 +0000 (15:42 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libnetwork/network/phy.h
src/libnetwork/phy.c

index 1f2b9b403310807444c93c833dd9d8b8e91f7639..9f3326bcac55ae1d3c80cb6439b6232f60ea8f84 100644 (file)
@@ -31,7 +31,7 @@ struct network_phy* network_phy_ref(struct network_phy* phy);
 struct network_phy* network_phy_unref(struct network_phy* phy);
 
 enum network_phy_ht_caps {
-       NETWORK_PHY_HT_CAP_RX_LDCP         = (1 <<  0),
+       NETWORK_PHY_HT_CAP_RX_LDPC         = (1 <<  0),
        NETWORK_PHY_HT_CAP_HT40            = (1 <<  1),
        NETWORK_PHY_HT_CAP_SMPS_STATIC     = (1 <<  2),
        NETWORK_PHY_HT_CAP_SMPS_DYNAMIC    = (1 <<  3),
@@ -84,7 +84,7 @@ struct nl_msg* network_phy_make_netlink_message(struct network_phy* phy,
        for(int cap = NETWORK_PHY_VHT_CAP_VHT160; cap <= NETWORK_PHY_VHT_CAP_TX_ANTENNA_PATTERN; cap <<= 1)
 
 #define foreach_ht_cap(cap) \
-       for(int cap = NETWORK_PHY_HT_CAP_RX_LDCP; cap <= NETWORK_PHY_HT_CAP_LSIG_TXOP_PROT; cap <<= 1)
+       for(int cap = NETWORK_PHY_HT_CAP_RX_LDPC; cap <= NETWORK_PHY_HT_CAP_LSIG_TXOP_PROT; cap <<= 1)
 
 #endif
 
index b58ccc7c0b8b8bb6849a4860522355c2174d7bad..8df6b97439cd2fd4fe8f95f363825b4122fe5a42 100644 (file)
@@ -153,9 +153,9 @@ static void phy_parse_vht_capabilities(struct network_phy* phy, __u32 caps) {
 }
 
 static void phy_parse_ht_capabilities(struct network_phy* phy, __u16 caps) {
-       // RX LDCP
+       // RX LDPC
        if (caps & BIT(0))
-               phy->ht_caps |= NETWORK_PHY_HT_CAP_RX_LDCP;
+               phy->ht_caps |= NETWORK_PHY_HT_CAP_RX_LDPC;
 
        // HT40
        if (caps & BIT(1))
@@ -423,7 +423,7 @@ static const char* network_phy_get_vht_capability_string(const enum network_phy_
 
 static const char* network_phy_get_ht_capability_string(const enum network_phy_ht_caps cap) {
        switch (cap) {
-               case NETWORK_PHY_HT_CAP_RX_LDCP:
+               case NETWORK_PHY_HT_CAP_RX_LDPC:
                        return "[LDPC]";
 
                case NETWORK_PHY_HT_CAP_HT40: