FreeBSD Bugzilla – Attachment 156173 Details for
Bug 197143
[wpi] [patch]: sync with iwn / OpenBSD wpi
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add TX status codes (obtained from iwlegacy)
patch-wpi82.diff (text/plain), 1.84 KB, created by
Andriy Voskoboinyk
on 2015-04-30 21:06:42 UTC
(
hide
)
Description:
Add TX status codes (obtained from iwlegacy)
Filename:
MIME Type:
Creator:
Andriy Voskoboinyk
Created:
2015-04-30 21:06:42 UTC
Size:
1.84 KB
patch
obsolete
>Index: sys/dev/wpi/if_wpi.c >=================================================================== >--- sys/dev/wpi/if_wpi.c (revision 281839) >+++ sys/dev/wpi/if_wpi.c (working copy) >@@ -1983,7 +1983,7 @@ > /* > * Update rate control statistics for the node. > */ >- if ((status & 0xff) != 1) { >+ if (status & WPI_TX_STATUS_FAIL) { > if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); > ieee80211_ratectl_tx_complete(vap, ni, > IEEE80211_RATECTL_TX_FAILURE, &ackfailcnt, NULL); >@@ -1993,7 +1993,7 @@ > IEEE80211_RATECTL_TX_SUCCESS, &ackfailcnt, NULL); > } > >- ieee80211_tx_complete(ni, m, (status & 0xff) != 1); >+ ieee80211_tx_complete(ni, m, (status & WPI_TX_STATUS_FAIL) != 0); > > WPI_TXQ_STATE_LOCK(sc); > ring->queued -= 1; >Index: sys/dev/wpi/if_wpireg.h >=================================================================== >--- sys/dev/wpi/if_wpireg.h (revision 281839) >+++ sys/dev/wpi/if_wpireg.h (working copy) >@@ -256,6 +256,26 @@ > uint8_t rate; > uint32_t duration; > uint32_t status; >+#define WPI_TX_STATUS_SUCCESS 0x01 >+#define WPI_TX_STATUS_DIRECT_DONE 0x02 >+#define WPI_TX_STATUS_FAIL 0x80 >+#define WPI_TX_STATUS_FAIL_SHORT_LIMIT 0x82 >+#define WPI_TX_STATUS_FAIL_LONG_LIMIT 0x83 >+#define WPI_TX_STATUS_FAIL_FIFO_UNDERRUN 0x84 >+#define WPI_TX_STATUS_FAIL_MGMNT_ABORT 0x85 >+#define WPI_TX_STATUS_FAIL_NEXT_FRAG 0x86 >+#define WPI_TX_STATUS_FAIL_LIFE_EXPIRE 0x87 >+#define WPI_TX_STATUS_FAIL_NODE_PS 0x88 >+#define WPI_TX_STATUS_FAIL_ABORTED 0x89 >+#define WPI_TX_STATUS_FAIL_BT_RETRY 0x8a >+#define WPI_TX_STATUS_FAIL_NODE_INVALID 0x8b >+#define WPI_TX_STATUS_FAIL_FRAG_DROPPED 0x8c >+#define WPI_TX_STATUS_FAIL_TID_DISABLE 0x8d >+#define WPI_TX_STATUS_FAIL_FRAME_FLUSHED 0x8e >+#define WPI_TX_STATUS_FAIL_INSUFFICIENT_CF_POLL 0x8f >+#define WPI_TX_STATUS_FAIL_TX_LOCKED 0x90 >+#define WPI_TX_STATUS_FAIL_NO_BEACON_ON_RADAR 0x91 >+ > } __packed; > > struct wpi_rx_desc {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197143
:
152282
|
152662
|
152977
|
153911
|
153977
|
153983
|
153985
|
153999
|
154000
|
154002
|
154006
|
154007
|
154009
|
154010
|
154011
|
154013
|
154015
|
154016
|
154017
|
154019
|
154020
|
154021
|
154022
|
154024
|
154026
|
154030
|
154032
|
154033
|
154328
|
154329
|
154330
|
154332
|
154334
|
154335
|
154336
|
154337
|
154338
|
154340
|
154341
|
154343
|
154346
|
154347
|
154348
|
154349
|
154350
|
154351
|
154352
|
154353
|
154354
|
154355
|
154356
|
154357
|
154358
|
154359
|
154360
|
154361
|
154362
|
154363
|
154364
|
154365
|
154366
|
154368
|
154369
|
154370
|
154371
|
154372
|
154373
|
154374
|
154375
|
154378
|
154379
|
154380
|
154381
|
154382
|
154383
|
154384
|
155332
|
155333
|
156164
|
156165
|
156166
|
156167
|
156168
|
156169
|
156170
|
156171
|
156172
| 156173 |
156174
|
156175
|
156176
|
156177
|
156178
|
156179
|
156180
|
156181
|
156182
|
156183
|
156184
|
156185
|
156186
|
156187
|
156188
|
156189
|
156190
|
156191
|
156192
|
156193
|
156194
|
156195