Skip to content

Commit 3eea6a5

Browse files
Sh3Rm4ncathay4t
authored andcommitted
Fix typos
1 parent c3e57b9 commit 3eea6a5

File tree

11 files changed

+29
-29
lines changed

11 files changed

+29
-29
lines changed

src/attr.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use crate::{
4848
Nl80211InterfaceType, Nl80211InterfaceTypes, Nl80211MloLink,
4949
Nl80211ScanFlags, Nl80211SchedScanMatch, Nl80211SchedScanPlan,
5050
Nl80211StationInfo, Nl80211TransmitQueueStat, Nl80211VhtCapability,
51-
Nl80211WowlanTrigersSupport,
51+
Nl80211WowlanTriggersSupport,
5252
};
5353

5454
const ETH_ALEN: usize = 6;
@@ -519,7 +519,7 @@ pub enum Nl80211Attr {
519519
/// in milliseconds
520520
MaxRemainOnChannelDuration(u32),
521521
OffchannelTxOk,
522-
WowlanTrigersSupport(Vec<Nl80211WowlanTrigersSupport>),
522+
WowlanTriggersSupport(Vec<Nl80211WowlanTriggersSupport>),
523523
SoftwareIftypes(Vec<Nl80211InterfaceType>),
524524
Features(Nl80211Features),
525525
ExtFeatures(Vec<Nl80211ExtFeature>),
@@ -644,7 +644,7 @@ impl Nla for Nl80211Attr {
644644
Nl80211Commands::from(s).as_slice().buffer_len()
645645
}
646646
Self::MaxRemainOnChannelDuration(_) => 4,
647-
Self::WowlanTrigersSupport(s) => s.as_slice().buffer_len(),
647+
Self::WowlanTriggersSupport(s) => s.as_slice().buffer_len(),
648648
Self::SoftwareIftypes(s) => {
649649
Nl80211InterfaceTypes::from(s).as_slice().buffer_len()
650650
}
@@ -743,7 +743,7 @@ impl Nla for Nl80211Attr {
743743
NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION
744744
}
745745
Self::OffchannelTxOk => NL80211_ATTR_OFFCHANNEL_TX_OK,
746-
Self::WowlanTrigersSupport(_) => {
746+
Self::WowlanTriggersSupport(_) => {
747747
NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED
748748
}
749749
Self::SoftwareIftypes(_) => NL80211_ATTR_SOFTWARE_IFTYPES,
@@ -864,7 +864,7 @@ impl Nla for Nl80211Attr {
864864
Nl80211Commands::from(s).as_slice().emit(buffer)
865865
}
866866
Self::MaxRemainOnChannelDuration(d) => write_u32(buffer, *d),
867-
Self::WowlanTrigersSupport(s) => s.as_slice().emit(buffer),
867+
Self::WowlanTriggersSupport(s) => s.as_slice().emit(buffer),
868868
Self::SoftwareIftypes(s) => {
869869
Nl80211InterfaceTypes::from(s).as_slice().emit(buffer)
870870
}
@@ -1250,9 +1250,9 @@ impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Nl80211Attr {
12501250
value {nla:?}"
12511251
);
12521252
let nla = &nla.context(err_msg.clone())?;
1253-
nlas.push(Nl80211WowlanTrigersSupport::parse(nla)?);
1253+
nlas.push(Nl80211WowlanTriggersSupport::parse(nla)?);
12541254
}
1255-
Self::WowlanTrigersSupport(nlas)
1255+
Self::WowlanTriggersSupport(nlas)
12561256
}
12571257
NL80211_ATTR_OFFCHANNEL_TX_OK => Self::OffchannelTxOk,
12581258
NL80211_ATTR_SOFTWARE_IFTYPES => Self::SoftwareIftypes(

src/element.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl From<[u8; 3]> for Nl80211ElementSubBand {
429429

430430
#[derive(Debug, PartialEq, Eq, Clone)]
431431
pub struct Nl80211ElementOperating {
432-
pub extention_id: u8,
432+
pub extension_id: u8,
433433
pub operating_class: u8,
434434
/// The `aAirPropagationTime` is `coverage_class` * 3 in μs for range
435435
/// between 0 - 31. Bigger than 31 is reserved.
@@ -442,7 +442,7 @@ impl Emitable for Nl80211ElementOperating {
442442
}
443443

444444
fn emit(&self, buffer: &mut [u8]) {
445-
buffer[0] = self.extention_id;
445+
buffer[0] = self.extension_id;
446446
buffer[1] = self.operating_class;
447447
buffer[2] = self.coverage_class;
448448
}
@@ -451,7 +451,7 @@ impl Emitable for Nl80211ElementOperating {
451451
impl From<[u8; 3]> for Nl80211ElementOperating {
452452
fn from(buf: [u8; 3]) -> Self {
453453
Self {
454-
extention_id: buf[0],
454+
extension_id: buf[0],
455455
operating_class: buf[1],
456456
coverage_class: buf[2],
457457
}

src/iface/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl Nl80211InterfaceSetRequest {
3838
attributes: dbg!(attributes),
3939
};
4040
// TODO: is the in iw dev set
41-
// I don't understand the correct seting of flags yet. In case of set
41+
// I don't understand the correct setting of flags yet. In case of set
4242
// `iw` does not set any flag, but here NLM_F_REQUEST is always
4343
// set. Curentliy infreadead.org libnl documentation website is
4444
// down. These are the same flags as in scan.rs

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub use self::wiphy::{
8686
Nl80211Channel, Nl80211ChannelSwitchRequest, Nl80211CipherSuit,
8787
Nl80211Frequency, Nl80211FrequencyInfo, Nl80211IfMode,
8888
Nl80211WiphyGetRequest, Nl80211WiphyHandle, Nl80211WowlanTcpTrigerSupport,
89-
Nl80211WowlanTrigerPatternSupport, Nl80211WowlanTrigersSupport,
89+
Nl80211WowlanTrigerPatternSupport, Nl80211WowlanTriggersSupport,
9090
};
9191

9292
pub(crate) use self::element::Nl80211Elements;

src/scan/handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl Nl80211AttrsBuilder<Nl80211Scan> {
109109
}
110110

111111
/// Scan frequencies in MHz.
112-
pub fn scan_frequncies(self, freqs: Vec<u32>) -> Self {
112+
pub fn scan_frequencies(self, freqs: Vec<u32>) -> Self {
113113
self.replace(Nl80211Attr::ScanFrequencies(freqs))
114114
}
115115

src/station/station_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ pub enum Nl80211StationInfo {
116116
StationFlags(Nl80211StationFlagUpdate),
117117
/// Timing offset with respect to this station
118118
TimingOffset(i64),
119-
/// Local mesh staion link-specific power mode
119+
/// Local mesh station link-specific power mode
120120
LocalPowerMode(Nl80211MeshPowerMode),
121-
/// Peer mesh staion link-specific power mode
121+
/// Peer mesh station link-specific power mode
122122
PeerPowerMode(Nl80211MeshPowerMode),
123123
/// Neighbor mesh station power save mode towards non-peer station
124124
NonPeerPowerMode(Nl80211MeshPowerMode),

src/wifi4.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,16 +517,16 @@ bitflags::bitflags! {
517517
const ExplicitTransmitCsiFeedbackImmediate = 1 << 12;
518518
/// Indicates this receiver can return delayed noncompressed
519519
/// beamforming feedback matrix explicit feedback
520-
const ExplicitNoncompressedFeebackDelay = 1 << 13;
520+
const ExplicitNoncompressedFeedbackDelay = 1 << 13;
521521
/// Indicates this receiver can return immediate noncompressed
522522
/// beamforming feedback matrix explicit feedback
523-
const ExplicitNoncompressedFeebackImmediate = 1 << 14;
523+
const ExplicitNoncompressedFeedbackImmediate = 1 << 14;
524524
/// Indicates this receiver can return delayed compressed
525525
/// beamforming feedback matrix explicit feedback
526-
const ExplicitCompressedFeebackDelay = 1 << 15;
526+
const ExplicitCompressedFeedbackDelay = 1 << 15;
527527
/// Indicates this receiver can return immediate compressed
528528
/// beamforming feedback matrix explicit feedback
529-
const ExplicitCompressedFeebackImmediate = 1 << 16;
529+
const ExplicitCompressedFeedbackImmediate = 1 << 16;
530530
/// Support 2 minimal groups used for explicit feedback report
531531
/// Unset means 1 minimal grouping.
532532
const MinimalGrouping2 = 1 << 17;

src/wifi6.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl Nl80211HeMacCapInfo {
6969
pub fn roadcast_twt_support(&self) -> bool {
7070
get_bit(&self.0, 20)
7171
}
72-
pub fn upport_32_bit_ba_bitmap(&self) -> bool {
72+
pub fn support_32_bit_ba_bitmap(&self) -> bool {
7373
get_bit(&self.0, 21)
7474
}
7575
pub fn u_cascading_support(&self) -> bool {
@@ -130,7 +130,7 @@ impl Nl80211HeMacCapInfo {
130130
pub fn m_control_ul_mu_data_disable_rx_support(&self) -> bool {
131131
get_bit(&self.0, 44)
132132
}
133-
pub fn e_dyanmic_sm_power_save(&self) -> bool {
133+
pub fn e_dynamic_sm_power_save(&self) -> bool {
134134
get_bit(&self.0, 45)
135135
}
136136
pub fn unctured_sounding_support(&self) -> bool {

src/wiphy/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub use self::ifmode::Nl80211IfMode;
2020
pub use self::set::Nl80211ChannelSwitchRequest;
2121
pub use self::wowlan::{
2222
Nl80211WowlanTcpTrigerSupport, Nl80211WowlanTrigerPatternSupport,
23-
Nl80211WowlanTrigersSupport,
23+
Nl80211WowlanTriggersSupport,
2424
};
2525

2626
pub(crate) use self::command::Nl80211Commands;

src/wiphy/wowlan.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const NL80211_WOWLAN_TRIG_NET_DETECT: u16 = 18;
6161

6262
/// Supported WoWLAN trigger
6363
#[derive(Debug, PartialEq, Eq, Clone)]
64-
pub enum Nl80211WowlanTrigersSupport {
64+
pub enum Nl80211WowlanTriggersSupport {
6565
/// Wake up on any activity, do not really put the chip into a special
6666
/// state -- works best with chips that have support for low-power
6767
/// operation already.
@@ -99,7 +99,7 @@ pub enum Nl80211WowlanTrigersSupport {
9999
Other(DefaultNla),
100100
}
101101

102-
impl Nla for Nl80211WowlanTrigersSupport {
102+
impl Nla for Nl80211WowlanTriggersSupport {
103103
fn value_len(&self) -> usize {
104104
match self {
105105
Self::Any
@@ -153,7 +153,7 @@ impl Nla for Nl80211WowlanTrigersSupport {
153153
}
154154

155155
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>>
156-
for Nl80211WowlanTrigersSupport
156+
for Nl80211WowlanTriggersSupport
157157
{
158158
fn parse(buf: &NlaBuffer<&'a T>) -> Result<Self, DecodeError> {
159159
let payload = buf.value();

tools/make_release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: MIT
33

44
MAIN_BRANCH_NAME="main"
5-
UPSTERAM_GIT="https://github.com/rust-netlink/wl-nl80211.git"
5+
UPSTREAM_GIT="https://github.com/rust-netlink/wl-nl80211.git"
66
TMP_CHANGELOG_FILE=$(mktemp)
77
EDITOR="${EDITOR:-vim}"
88

@@ -19,7 +19,7 @@ then
1919
fi
2020

2121

22-
CHANGLOG_FORMAT="
22+
CHANGELOG_FORMAT="
2323
### Breaking changes\n\
2424
- N/A\n\
2525
\n\
@@ -50,7 +50,7 @@ NEXT_VERSION="${CUR_MAJOR_VERSION}.$((CUR_MINOR_VERSION + 1)).0";
5050

5151
git branch new_release || true
5252
git checkout new_release
53-
git fetch upstream || (git remote add upstream $UPSTERAM_GIT; \
53+
git fetch upstream || (git remote add upstream $UPSTREAM_GIT; \
5454
git fetch upstream)
5555
git reset --hard upstream/$MAIN_BRANCH_NAME
5656

@@ -60,7 +60,7 @@ cargo publish --dry-run --allow-dirty
6060

6161
echo "# Changelog" > $TMP_CHANGELOG_FILE
6262
echo "## [$NEXT_VERSION] - $(date +%F)" >> $TMP_CHANGELOG_FILE
63-
echo -e $CHANGLOG_FORMAT >> $TMP_CHANGELOG_FILE
63+
echo -e $CHANGELOG_FORMAT >> $TMP_CHANGELOG_FILE
6464
git log --oneline --format=" - %s. (%h)" \
6565
v${CUR_VERSION}..upstream/$MAIN_BRANCH_NAME -- | \
6666
grep -v -E '^ - test:' | \

0 commit comments

Comments
 (0)