Year: 2018

  • 2018-10-10 notes

    放假!終於有時間可以騎車。出發之前幫車子的鏈條上油,用的是 Motul C4 鍊條油,是用塗抹的方式上油,前面的蓋子因為有點問題,要擠出來的時候脫落,結果一整坨油就這樣噴出來……只能到研三餐廳的廁所洗手處理。一樣是 2 小時的路線,途中有一組男女被警察擊落,反正車牌後面也掛布條,被擊落剛好。龍鎮的西瓜汁不知道是不是因為西瓜產季過了,好幾次都沒開了。回到學校進到實驗室,重頭看 802.11v 跟 802.1AS 的部分,還在想要怎麼把它實作出來。 Reading 802.11v (timing measurment) & 802.1AS, trying to implement it on ath9k  

  • 2018-10-09 notes

    今天八點就醒了,賴了一個小時候出門吃早餐。應該是因為昨天比較早睡的關係。天氣不像前兩天那樣冷,所以只穿短袖就出去了。中午開法規會,第三案討論最久,是由交大工會提出,希望讓約用/計畫人員也能夠加入校務會議的案子,最後成功送出法規會到校務會議討論,大概是最近最讓人振奮的消息吧。交大要成為所謂的「偉大大學」,考量並且納入校園組成份子的聲音是必不可少的一件事情。晚上的時候,整個 Lab 帶去參加 TESOL 的 English Table,老師是越南人,這一個半小時的課程上下來還不錯。吃個晚餐回來就是測測數據了。 IRTT for Android (v1.1, update with server/client mode w/ command line options) Measuring data on 802.11n/20MHz/MCS/stations

  • 2018-10-08 notes

    冷…繼續穿長袖。早餐 10 點吃,午餐下午 4 點吃鬆餅,晚餐 6 點半買一盒水果 (芭樂 + 木瓜 (剛剛竟然想不起木瓜的名子……))。 IRTT for Android Measuring data on 802.11n/20MHz/MCS/stations Using C2600 as client for IRTT

  • 2018-10-07 notes

    天氣轉涼,穿起長袖。原本今天要騎車繞一圈預計下午一點回實驗室,但口袋裡面沒有耳塞了,穿好一半的裝備全部脫下來,走去研三旁邊的全家吃早午餐。  修正 ath9k 對於服從 EEPROM region 的問題:見這篇分隔線下  測量 ath9k 20 MHz / 40 MHz different MCS 下,one station without congestion/interference 的 RTT:見 github

  • hostapd: Using DFS channel in AP mode (ath9k)

    今天在設定 hostapd 給 ath9k 的網卡使用時,遇到了這樣的問題: 無法在 AP mode 設定 channel 為 120, 124, 132 首先出現的是 DFS start_dfs_cac() failed, -1,照著這篇 mail 安裝 wireless-regdb 以及 crda 就不會出現問題。 接著出現了這樣的訊息: ➜ hostapd git:(master) ✗ sudo ./hostapd nems.conf Configuration file: nems.conf wlp0s20f0u5: interface state UNINITIALIZED->COUNTRY_UPDATE Channel 120 (primary) not allowed for AP mode wlp0s20f0u5: IEEE 802.11 Configured channel (120) not found from the channel…

  • 日文單字 (二)

    建物(たてもの) – jisho Noun 1. building 曲(ま)がる – jisho Godan verb with ru ending, intransitive verb 1. to bend; to curve; to warp; to wind; to twist 風(かぜ)に吹(ふ)かれて木(き)が曲(ま)がった。The tree bent in the wind. 2. to turn  See also 折れる おれる 3. to be awry; to be askew; to be crooked​ ネクタイが 曲がってるよ。Your tie is crooked. 側(そば) – jisho Noun 1. near; close; beside;…

  • 日文單字 (一)

    汚(きたな)い – jisho 1. dirty; filthy; foul; unclean​ 2. disordered; messy; untidy; poor (e.g. handwriting)​ 3. indecent (language, etc.); dirty; vulgar; coarse​ 4. dastardly; mean; base; underhanded​ 5. stingy; greedy​ I-adjective Affirmative Negative Non-past 汚い 汚くない Past 汚かった 汚くなかった   昼(ひる) (Noun)- jisho 1. noon; midday  See also 御昼 2. daytime  Only applies to 昼, Only applies to 晝, See also 御昼 3. lunch  Only applies to 昼, Only…

  • TIL: private data struct in Linux kernel

    在 Linux kernel 當中有許多的 common struct,例如說 ieee80211_txq 這樣的結構,透過這樣的方式,可以讓不同的 driver 重用相同的 struct。但是,針對每個不同的 driver,還是會有不同的 private data,這時候就會用 private data struct 的方式來處理。 例如說,struct ieee80211_txq 是 mac80211 中的 intermediate tx queue,目前有使用的 wireless driver 為 ath9k, ath10k 以及 mt76。struct ieee80211_txq 的整個結構為: /** * struct ieee80211_txq – Software intermediate tx queue * * @vif: &struct ieee80211_vif pointer from the add_interface callback. * @sta: station table…

  • TIL: ARRAY_SIZE in Linux kernel

    from net/mac80211/sta_info.c, define at include/linux/kernel.h /** * ARRAY_SIZE – get the number of elements in array @arr * @arr: array to be sized */ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) __must_be_array: 檢查 a 是否為 array,當 a 為 array 時,會因為 &(a)[0] 變成 pointer,而讓 __same_type 產生 0 的結果,反之如果 a 為 pointer,因為 &(a)[0] 仍然是 pointer, __same_type 回傳…

  • Qualcomm ath9k 驅動程式解析 (二) – 幾個重要結構

    ieee80211_local *local 用途: contains information about the real hardware, and is created when the interface is first added. (Daniel Caps Mur, Linux Wi-Fi open source drivers-mac80211,ath9k/ath5k-, pp.1) each instance of these (hw is embedded into local) represents a wireless driver, ieee80211_hw is the part of the ieee80211_local that is visible to drivers, contains all operating…